1 |
|
2 | if (typeof window.console == "undefined" || typeof window.console.log == "undefined") {
|
3 | window.console = {
|
4 | log : function() {},
|
5 | info : function(){},
|
6 | warn : function(){}
|
7 | };
|
8 | }
|
9 | if(typeof window.console.group == 'undefined' || typeof window.console.groupEnd == 'undefined' || typeof window.console.groupCollapsed == 'undefined') {
|
10 | window.console.group = function(){};
|
11 | window.console.groupEnd = function(){};
|
12 | window.console.groupCollapsed = function(){};
|
13 | }
|
14 | if(typeof window.console.markTimeline == 'undefined') {
|
15 | window.console.markTimeline = function(){};
|
16 | }
|
17 | window.console.clear = function(){};
|