Fixed so users that has blocked cookies still are able to play

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-19 22:58:51 +02:00
parent 5dc5590c67
commit 8cd9f8fa5d
7 changed files with 70 additions and 25 deletions

View File

@@ -19,7 +19,13 @@ var Helper = {
},
log: function(to_log) {
if(localStorage.debug === "true") {
var _DEBUG;
try {
_DEBUG = localStorage.getItem("debug");
} catch(e) {
_DEBUG = false;
}
if(_DEBUG === "true") {
console.log("------------ " + new Date() + " ------------");/*RemoveLogging:skip*/
for(var i = 0; i < to_log.length; i++) {
console.log(to_log[i]);/*RemoveLogging:skip*/