mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Try to reconnect when the editor cursor is moved.
This commit is contained in:
parent
b393de1450
commit
8bd83f64e0
1 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,10 @@ define [], () ->
|
|||
if !@connected
|
||||
@tryReconnect()
|
||||
|
||||
@$scope.$on 'cursor:editor:update', () =>
|
||||
if !@connected
|
||||
@tryReconnect()
|
||||
|
||||
@ide.socket = io.connect null,
|
||||
reconnect: false
|
||||
"force new connection": true
|
||||
|
|
Loading…
Reference in a new issue