mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
Don't show pop up when leaving page in Safari
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user