From: Alexander Ebert Date: Mon, 8 Aug 2022 16:37:43 +0000 (+0200) Subject: Remove a workaround for `window.console` in IE<11 X-Git-Tag: 6.0.0_Alpha_1~1049^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5462c8cd22281bd5eaf3af8acf9e06cad72e2098;p=GitHub%2FWoltLab%2FWCF.git Remove a workaround for `window.console` in IE<11 --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index d49fe2188d..2b8a414891 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -63,15 +63,6 @@ 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); };