diff --git a/src/game.js b/src/game.js index 12dc423..6619cc7 100644 --- a/src/game.js +++ b/src/game.js @@ -28,9 +28,12 @@ class Game { if (this.mainScreen.after === AfterMenu.Start) { this.changeScreen(this.scene); } else if (this.mainScreen.after === AfterMenu.Exit) { - if (navigator.app !== undefined && typeof navigator.app.exitApp === 'function') { - navigator.app.exitApp(); + if (typeof window.close === 'function') { + window.close(); } + // if (navigator.app !== undefined && typeof navigator.app.exitApp === 'function') { + // navigator.app.exitApp(); + // } } } }