mirror of
				https://github.com/usmannasir/cyberpanel.git
				synced 2025-10-31 10:26:01 +01:00 
			
		
		
		
	
		
			
	
	
		
			21 lines
		
	
	
		
			572 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			21 lines
		
	
	
		
			572 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|  | /** | ||
|  |  * Fixed error: "console" is undefined in IE<10 if dev tools are not open | ||
|  |  */ | ||
|  | (function(window) { | ||
|  | 
 | ||
|  |     if (window.console) return; | ||
|  | 
 | ||
|  |     window.console = (function() { | ||
|  |         var methods = 'assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,table,time,timeEnd,timeStamp,trace,warn'.split(','); | ||
|  |         var noop = function() {}; | ||
|  |         var object = {}; | ||
|  |         var key; | ||
|  | 
 | ||
|  |         while(key = methods.pop()) { | ||
|  |             object[key] = noop; | ||
|  |         } | ||
|  | 
 | ||
|  |         return object; | ||
|  |     }()); | ||
|  | 
 | ||
|  | }(window)); |