Fix for localstorage not being existing crashes the player

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-20 16:32:09 +02:00
parent 410b255874
commit 52fedde073
2 changed files with 2 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ var client = false;
var _VERSION;
try {
_VERSION = localStorage.getItem("VERSION");
if(_VERSION == null || _VERSION == undefined) throw "Some error";
} catch(e) {
_VERSION = 6;
}