mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed so users that has blocked cookies still are able to play
This commit is contained in:
@@ -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*/
|
||||
|
||||
Reference in New Issue
Block a user