window.close()
This commit is contained in:
parent
27157710b4
commit
1aad3e7c15
|
@ -28,9 +28,12 @@ class Game {
|
||||||
if (this.mainScreen.after === AfterMenu.Start) {
|
if (this.mainScreen.after === AfterMenu.Start) {
|
||||||
this.changeScreen(this.scene);
|
this.changeScreen(this.scene);
|
||||||
} else if (this.mainScreen.after === AfterMenu.Exit) {
|
} else if (this.mainScreen.after === AfterMenu.Exit) {
|
||||||
if (navigator.app !== undefined && typeof navigator.app.exitApp === 'function') {
|
if (typeof window.close === 'function') {
|
||||||
navigator.app.exitApp();
|
window.close();
|
||||||
}
|
}
|
||||||
|
// if (navigator.app !== undefined && typeof navigator.app.exitApp === 'function') {
|
||||||
|
// navigator.app.exitApp();
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue