diff --git a/src/wp-includes/js/heartbeat.js b/src/wp-includes/js/heartbeat.js index 3e57149744..3f5e64adee 100644 --- a/src/wp-includes/js/heartbeat.js +++ b/src/wp-includes/js/heartbeat.js @@ -239,7 +239,7 @@ if ( trigger && ! hasConnectionError() ) { settings.connectionError = true; - $(document).trigger( 'heartbeat-connection-lost', [error, status] ); + $document.trigger( 'heartbeat-connection-lost', [error, status] ); } } }