diff --git a/services/web/frontend/js/features/ide-react/connection/connection-manager.ts b/services/web/frontend/js/features/ide-react/connection/connection-manager.ts index d0f4c4f883..e6a5ca5df0 100644 --- a/services/web/frontend/js/features/ide-react/connection/connection-manager.ts +++ b/services/web/frontend/js/features/ide-react/connection/connection-manager.ts @@ -50,7 +50,7 @@ export class ConnectionManager extends Emitter { this.disconnectIfIdleSince(DISCONNECT_AFTER_MS) }, ONE_HOUR_IN_MS) - window.addEventListener('online', this.onOnline) + window.addEventListener('online', () => this.onOnline()) const socket = SocketIoShim.connect('', { 'auto connect': false,