From ff7c822ccce30db4ce4637c7f0e76f7907b55b31 Mon Sep 17 00:00:00 2001 From: tobspr Date: Sun, 24 May 2020 18:49:14 +0200 Subject: [PATCH] Fix eslint warning --- src/js/application.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/js/application.js b/src/js/application.js index 58804ee5..8d3f227a 100644 --- a/src/js/application.js +++ b/src/js/application.js @@ -301,8 +301,7 @@ export class Application { logSection("BEFORE UNLOAD HANDLER", "#f77"); if (!G_IS_DEV && this.stateMgr.getCurrentState().getHasUnloadConfirmation()) { - if (G_IS_STANDALONE) { - } else { + if (!G_IS_STANDALONE) { // Need to show a "Are you sure you want to exit" event.preventDefault(); event.returnValue = "Are you sure you want to exit?";