window.close()
This commit is contained in:
parent
27157710b4
commit
1aad3e7c15
|
@ -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();
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue