don't use onbeforeunload for the app as it will show no dialog
This commit is contained in:
parent
56549eb533
commit
070dc9bd0b
1 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,9 @@ editor = {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
window.onbeforeunload = editor._onbeforeunload;
|
if (!window.mobileclient) {
|
||||||
|
window.onbeforeunload = editor._onbeforeunload;
|
||||||
|
}
|
||||||
|
|
||||||
L.control.scale({imperial: false}).addTo(editor.map);
|
L.control.scale({imperial: false}).addTo(editor.map);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue