- // New game just started: data contain all informations
- this.startNewGame(data.gameInfo);
- // TODO: if live, redirect to game
- // if corr, notify with link but do not redirect
+ // New game just started: data contain all information
+ if (data.gameInfo.type == "live")
+ {
+ this.startNewGame(data.gameInfo);
+ // TODO: redirect to game
+ }
+ else
+ {
+ // TODO: notify with game link but do not redirect
+ }