mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Fix eslint warning
This commit is contained in:
parent
8b9ce418f3
commit
ff7c822ccc
@ -301,8 +301,7 @@ export class Application {
|
|||||||
logSection("BEFORE UNLOAD HANDLER", "#f77");
|
logSection("BEFORE UNLOAD HANDLER", "#f77");
|
||||||
|
|
||||||
if (!G_IS_DEV && this.stateMgr.getCurrentState().getHasUnloadConfirmation()) {
|
if (!G_IS_DEV && this.stateMgr.getCurrentState().getHasUnloadConfirmation()) {
|
||||||
if (G_IS_STANDALONE) {
|
if (!G_IS_STANDALONE) {
|
||||||
} else {
|
|
||||||
// Need to show a "Are you sure you want to exit"
|
// Need to show a "Are you sure you want to exit"
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.returnValue = "Are you sure you want to exit?";
|
event.returnValue = "Are you sure you want to exit?";
|
||||||
|
Loading…
Reference in New Issue
Block a user