Fix weirdly unsupported group name in Firefox by using only group index

This commit is contained in:
Tissevert 2020-01-14 22:07:05 +01:00
parent 2563a44c11
commit d5b846421c
1 changed files with 2 additions and 2 deletions

View File

@ -5,10 +5,10 @@ import * as Hall from GUI.Screen.Hall;
import * as Game from GUI.Screen.Game;
import Save;
var gamePath = window.location.pathname.match(/\/game\/(?<id>[0-9A-Fa-f]+)/);
var gamePath = window.location.pathname.match(/\/game\/([0-9A-Fa-f]+)/);
if(gamePath) {
var gameState = Save.get('games.state.Game#' + gamePath.groups.id);
var gameState = Save.get('games.state.Game#' + gamePath[1]);
if(gameState != undefined) {
Game.init(gameState);
} else {