From e998da06d1950b5c85205e035a86e7175819a05c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Tue, 18 Dec 2012 21:38:01 +0100 Subject: [PATCH] fix broken console.log in ie8 --- core/js/js.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/js/js.js b/core/js/js.js index 7d967321d93..503684b8747 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -13,7 +13,13 @@ if (oc_debug !== true) { console[methods[i]] = function () { }; } } - +/** + * fix broken console log in ie8 + */ +if (typeof console === "undefined" || typeof console.log === "undefined") { + console = {}; + console.log = function() {}; +} /** * translate a string * @param app the id of the app for which to translate the string -- 2.39.5