]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix broken console.log in ie8
authorJörn Friedrich Dreyer <jfd@butonic.de>
Tue, 18 Dec 2012 20:38:01 +0000 (21:38 +0100)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Wed, 2 Jan 2013 11:13:07 +0000 (12:13 +0100)
core/js/js.js

index 7d967321d93b97465f7abfb2a3b5bb4a1a79b46c..503684b87471ec395ee21ce1cccacb4e709b90a3 100644 (file)
@@ -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