1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-17 06:47:34 +00:00

Merge pull request from overleaf/jpa-cleanup-on-epoch-mismatch

[frontend] on editorOpenDocEpoch mismatch, cleanup the old doc

GitOrigin-RevId: b07beb33a17d218d7aa35961dee5e215bd82c315
This commit is contained in:
Brian Gough 2020-12-14 09:28:51 +00:00 committed by Copybot
parent a393352516
commit 0b94c89990

View file

@ -273,6 +273,7 @@ export default (EditorManager = (function() {
this.editorOpenDocEpoch
} vs ${editorOpenDocEpoch}`
)
new_sharejs_doc.leaveAndCleanUp()
return callback(new Error('another document was loaded'))
}
this._bindToDocumentEvents(doc, new_sharejs_doc)