Fix weirdly unsupported group name in Firefox by using only group index
This commit is contained in:
parent
2563a44c11
commit
d5b846421c
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue