From: Jörn Friedrich Dreyer Date: Tue, 18 Dec 2012 20:38:01 +0000 (+0100) Subject: fix broken console.log in ie8 X-Git-Tag: v5.0.0alpha1~271^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e998da06d1950b5c85205e035a86e7175819a05c;p=nextcloud-server.git fix broken console.log in ie8 --- 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