mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -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", () =>
|
@$scope.$on "editor:change", () =>
|
||||||
@lastUpdated = new Date()
|
@lastUpdated = new Date()
|
||||||
|
if !@connected
|
||||||
|
@tryReconnect()
|
||||||
|
|
||||||
@ide.socket = io.connect null,
|
@ide.socket = io.connect null,
|
||||||
reconnect: false
|
reconnect: false
|
||||||
|
|
Loading…
Reference in a new issue