Add version information to the application.

This commit is contained in:
Gareth Latty
2016-06-27 01:50:19 +01:00
parent d95c558cc8
commit 08cbac4ba4
16 changed files with 564 additions and 390 deletions
+2 -1
View File
@@ -2,7 +2,7 @@ function toggleWarningDrawer() {
document.getElementById('#warning-drawer').classList.toggle('shut');
}
function start(url) {
function start(url, version) {
var gameCode = window.location.hash.substr(1);
var existingGame = localStorage.getItem("existing-game");
if (existingGame != null) {
@@ -13,6 +13,7 @@ function start(url) {
}
}
var initialState = {
version: version,
url: url,
gameCode: gameCode == "" ? null : gameCode,
existingGame: existingGame,