mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 20:03:43 -05:00
Merge pull request #2908 from overleaf/bg-add-missing-leave-doc-event
add leaveDoc event GitOrigin-RevId: 6d8a40b1226ced7d853e2b72f02d484619a982ce
This commit is contained in:
parent
63e8c48c77
commit
8c4e4bab3f
1 changed files with 3 additions and 0 deletions
|
@ -540,6 +540,9 @@ export default (Document = (function() {
|
||||||
if (callback == null) {
|
if (callback == null) {
|
||||||
callback = function(error) {}
|
callback = function(error) {}
|
||||||
}
|
}
|
||||||
|
this.ide.pushEvent('leaveDoc', {
|
||||||
|
doc_id: this.doc_id
|
||||||
|
})
|
||||||
sl_console.log('[_leaveDoc] Sending leaveDoc request')
|
sl_console.log('[_leaveDoc] Sending leaveDoc request')
|
||||||
return this.ide.socket.emit('leaveDoc', this.doc_id, error => {
|
return this.ide.socket.emit('leaveDoc', this.doc_id, error => {
|
||||||
if (error != null) {
|
if (error != null) {
|
||||||
|
|
Loading…
Reference in a new issue