mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
Try to reconnect when the editor cursor is moved.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user