summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2012-12-18 21:38:01 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-01-02 12:13:07 +0100
commite998da06d1950b5c85205e035a86e7175819a05c (patch)
treee53b95e29e55ec85296a6f8599df8b93a52f5b0e /core/js
parent516464ba94a73e9151702ddd08dae1b7501dc79c (diff)
downloadnextcloud-server-e998da06d1950b5c85205e035a86e7175819a05c.tar.gz
nextcloud-server-e998da06d1950b5c85205e035a86e7175819a05c.zip
fix broken console.log in ie8
Diffstat (limited to 'core/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