From 5462c8cd22281bd5eaf3af8acf9e06cad72e2098 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 8 Aug 2022 18:37:43 +0200 Subject: [PATCH] Remove a workaround for `window.console` in IE<11 --- wcfsetup/install/files/js/WCF.js | 9 --------- 1 file changed, 9 deletions(-) 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); }; -- 2.20.1