mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added Helper.log and error message on connection failure
This commit is contained in:
@@ -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)];
|
||||
|
||||
Reference in New Issue
Block a user