summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js8
1 files changed, 7 insertions, 1 deletions
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