mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Prettier helper.log
This commit is contained in:
@@ -247,7 +247,7 @@ var Channel = {
|
||||
$(".castButton").css("display", "none");
|
||||
}
|
||||
|
||||
Helper.log(["chromecastAvailable " + chromecastAvailable, "chromecastAvailable" + chromecastReady]);
|
||||
Helper.log(["chromecastAvailable " + chromecastAvailable, "chromecastReady " + chromecastReady]);
|
||||
|
||||
if(chromecastAvailable){
|
||||
hide_native(1);
|
||||
|
||||
@@ -2,11 +2,11 @@ var Helper = {
|
||||
logs: [],
|
||||
log: function(to_log) {
|
||||
if(localStorage.debug === "true") {
|
||||
console.log("------------ " + new Date());
|
||||
console.log("------------ " + new Date() + " ------------");
|
||||
for(var i = 0; i < to_log.length; i++) {
|
||||
console.log(to_log[i]);
|
||||
}
|
||||
console.log("------------ " + new Date());
|
||||
console.log("------------ " + new Date() + " ------------");
|
||||
}
|
||||
Helper.logs.unshift({log: to_log, date: new Date()});
|
||||
if(Helper.logs.length > 10) {
|
||||
|
||||
Reference in New Issue
Block a user