mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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:
parent
f781e00f10
commit
5ddcdfbe2b
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue