mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Try to reconnect when the user types in the editor.
This commit is contained in:
parent
54de12d908
commit
b393de1450
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ define [], () ->
|
|||
|
||||
@$scope.$on "editor:change", () =>
|
||||
@lastUpdated = new Date()
|
||||
if !@connected
|
||||
@tryReconnect()
|
||||
|
||||
@ide.socket = io.connect null,
|
||||
reconnect: false
|
||||
|
|
Loading…
Reference in a new issue