Added Helper.log and error message on connection failure

This commit is contained in:
Kasper Rynning-Tønnesen
2016-09-01 20:06:05 +02:00
parent bded7f726e
commit 5bfdd25962
17 changed files with 205 additions and 189 deletions

View File

@@ -1,4 +1,11 @@
var Helper = {
log: function(to_log){
if(localStorage.debug === "true") {
console.log(to_log);
}
},
rnd: function(arr)
{
return arr[Math.floor(Math.random() * arr.length)];