Remove a workaround for `window.console` in IE<11
authorAlexander Ebert <ebert@woltlab.com>
Mon, 8 Aug 2022 16:37:43 +0000 (18:37 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 8 Aug 2022 16:37:43 +0000 (18:37 +0200)
wcfsetup/install/files/js/WCF.js

index d49fe2188d350a1696f6ddca960d75572ca77bf8..2b8a4148916d806cdc6c9f537498b55c72268561 100755 (executable)
                return $data;
        };
        
-       // provide a sane window.console implementation
-       if (!window.console) window.console = { };
-       var consoleProperties = [ "log",/* "debug",*/ "info", "warn", "exception", "assert", "dir", "dirxml", "trace", "group", "groupEnd", "groupCollapsed", "profile", "profileEnd", "count", "clear", "time", "timeEnd", "timeStamp", "table", "error" ];
-       for (var i = 0; i < consoleProperties.length; i++) {
-               if (typeof (console[consoleProperties[i]]) === 'undefined') {
-                       console[consoleProperties[i]] = function () { };
-               }
-       }
-       
        if (typeof(console.debug) === 'undefined') {
                // forward console.debug to console.log (IE9)
                console.debug = function(string) { console.log(string); };