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");
 | 
					            $(".castButton").css("display", "none");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Helper.log(["chromecastAvailable " + chromecastAvailable, "chromecastAvailable" + chromecastReady]);
 | 
					        Helper.log(["chromecastAvailable " + chromecastAvailable, "chromecastReady " + chromecastReady]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if(chromecastAvailable){
 | 
					        if(chromecastAvailable){
 | 
				
			||||||
            hide_native(1);
 | 
					            hide_native(1);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,11 +2,11 @@ var Helper = {
 | 
				
			|||||||
    logs: [],
 | 
					    logs: [],
 | 
				
			||||||
    log: function(to_log) {
 | 
					    log: function(to_log) {
 | 
				
			||||||
        if(localStorage.debug === "true") {
 | 
					        if(localStorage.debug === "true") {
 | 
				
			||||||
            console.log("------------ " + new Date());
 | 
					            console.log("------------ " + new Date() + " ------------");
 | 
				
			||||||
            for(var i = 0; i < to_log.length; i++) {
 | 
					            for(var i = 0; i < to_log.length; i++) {
 | 
				
			||||||
                console.log(to_log[i]);
 | 
					                console.log(to_log[i]);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            console.log("------------ " + new Date());
 | 
					            console.log("------------ " + new Date() + " ------------");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        Helper.logs.unshift({log: to_log, date: new Date()});
 | 
					        Helper.logs.unshift({log: to_log, date: new Date()});
 | 
				
			||||||
        if(Helper.logs.length > 10) {
 | 
					        if(Helper.logs.length > 10) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user