mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-01 10:56:23 +01:00
Initial commit for v2.4.3
This commit is contained in:
21
static/filemanager/js/console-sham.js
Executable file
21
static/filemanager/js/console-sham.js
Executable file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* 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));
|
||||
Reference in New Issue
Block a user