FIX: spark button open in a new window
This commit is contained in:
parent
c93d1794b7
commit
9fbcf0dc12
@ -151,7 +151,6 @@ export class MenuScene extends Phaser.Scene {
|
|||||||
switch ((event?.target as HTMLInputElement).id) {
|
switch ((event?.target as HTMLInputElement).id) {
|
||||||
case 'changeNameButton':
|
case 'changeNameButton':
|
||||||
this.closeSideMenu();
|
this.closeSideMenu();
|
||||||
this.closeGameQualityMenu();
|
|
||||||
gameManager.leaveGame(this, LoginSceneName, new LoginScene());
|
gameManager.leaveGame(this, LoginSceneName, new LoginScene());
|
||||||
break;
|
break;
|
||||||
case 'sparkButton':
|
case 'sparkButton':
|
||||||
@ -197,6 +196,6 @@ export class MenuScene extends Phaser.Scene {
|
|||||||
|
|
||||||
private goToSpark() {
|
private goToSpark() {
|
||||||
const sparkHost = 'https://'+window.location.host.replace('play.', 'admin.')+'/register';
|
const sparkHost = 'https://'+window.location.host.replace('play.', 'admin.')+'/register';
|
||||||
window.location.assign(sparkHost);
|
window.open(sparkHost, '_blank');
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user