mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 18:20:09 +02:00
Merge pull request #15747 from overleaf/td-ide-page-on-online
React IDE page: prevent error from connection manager when user comes online GitOrigin-RevId: 8548b8db4cfb32598916eb423af737b36b4eadf5
This commit is contained in:
@@ -50,7 +50,7 @@ export class ConnectionManager extends Emitter<Events> {
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user