Merge pull request #498 from thecodingmachine/fixGoToSpark

FIX: spark button open in a new window
This commit is contained in:
Kharhamel 2020-12-16 19:08:42 +01:00 committed by GitHub
commit 432fd821e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,7 +151,6 @@ export class MenuScene extends Phaser.Scene {
switch ((event?.target as HTMLInputElement).id) {
case 'changeNameButton':
this.closeSideMenu();
this.closeGameQualityMenu();
gameManager.leaveGame(this, LoginSceneName, new LoginScene());
break;
case 'sparkButton':
@ -197,6 +196,6 @@ export class MenuScene extends Phaser.Scene {
private goToSpark() {
const sparkHost = 'https://'+window.location.host.replace('play.', 'admin.')+'/register';
window.location.assign(sparkHost);
window.open(sparkHost, '_blank');
}
}