From 9fbcf0dc1227a4c5aa1b6f28ead521b1baa3167d Mon Sep 17 00:00:00 2001 From: kharhamel Date: Wed, 16 Dec 2020 19:02:10 +0100 Subject: [PATCH] FIX: spark button open in a new window --- front/src/Phaser/Menu/MenuScene.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/front/src/Phaser/Menu/MenuScene.ts b/front/src/Phaser/Menu/MenuScene.ts index 644de09b..502ae880 100644 --- a/front/src/Phaser/Menu/MenuScene.ts +++ b/front/src/Phaser/Menu/MenuScene.ts @@ -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'); } } \ No newline at end of file