MAPG-90 disable unload prevention and unify onbeforeunload script (loading animation)
This commit is contained in:
1 parent
098f34ca0a
commit
fe095cf435
4 files changed
+6
-18
No files matched your search
@@ -446,15 +446,4 @@
|
||||
document.getElementById('startNewGameButton').onclick = function () {
|
||||
Core.resetGame();
|
||||
}
|
||||
|
||||
// showing the loading animation is not possible, because we don't know if user cancelled the leave
|
||||
|
||||
window.onbeforeunload = function (e) {
|
||||
if (Core.rounds[Core.rounds.length - 1].position) {
|
||||
return;
|
||||
}
|
||||
|
||||
e.preventDefault();
|
||||
e.returnValue = '';
|
||||
};
|
||||
})();
|
||||
Reference in new issue
Block a user