mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Don't show pop up when leaving page in Safari
This commit is contained in:
parent
16b7bf222a
commit
8128200d55
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ define [], () ->
|
|||
@userIsLeavingPage = false
|
||||
window.addEventListener 'beforeunload', =>
|
||||
@userIsLeavingPage = true
|
||||
return # Don't return true or it will show a pop up
|
||||
|
||||
@connected = false
|
||||
@userIsInactive = false
|
||||
|
|
Loading…
Reference in a new issue