You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
657 B

  1. // Allow for console.log to not break IE
  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(){};