mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 06:09:02 +02:00
Merge pull request #3482 from overleaf/jpa-cleanup-on-epoch-mismatch
[frontend] on editorOpenDocEpoch mismatch, cleanup the old doc GitOrigin-RevId: b07beb33a17d218d7aa35961dee5e215bd82c315
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user