Prettier helper.log

This commit is contained in:
Kasper Rynning-Tønnesen
2018-02-26 14:58:45 +01:00
parent 45fe704285
commit f84b1d55d3
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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) {