Remove custom message from onbeforeunload event
It's not supported anymore by browsers.
This commit is contained in:
parent
597b3bb10f
commit
ed7181ba24
1 changed files with 1 additions and 7 deletions
|
@ -267,13 +267,7 @@ L.U.Map.include({
|
|||
if (L.Util.queryString('download')) this.download()
|
||||
})
|
||||
|
||||
window.onbeforeunload = (e) => {
|
||||
const msg = L._('You have unsaved changes.')
|
||||
if (self.isDirty) {
|
||||
e.returnValue = msg
|
||||
return msg
|
||||
}
|
||||
}
|
||||
window.onbeforeunload = () => this.isDirty || null
|
||||
this.backup()
|
||||
this.initContextMenu()
|
||||
this.on('click contextmenu.show', this.closeInplaceToolbar)
|
||||
|
|
Loading…
Reference in a new issue