diff options
Diffstat (limited to 'core/js/js.js')
-rw-r--r-- | core/js/js.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/core/js/js.js b/core/js/js.js index bc4a8413e0b..ec2f53d332f 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -18,16 +18,6 @@ if (typeof oc_webroot === "undefined") { oc_webroot = oc_webroot.substr(0, oc_webroot.lastIndexOf('/')); } } -if (typeof console === "undefined" || typeof console.log === "undefined") { - if (!window.console) { - window.console = {}; - } - var noOp = function() { }; - var methods = ['log', 'debug', 'warn', 'info', 'error', 'assert', 'time', 'timeEnd']; - for (var i = 0; i < methods.length; i++) { - console[methods[i]] = noOp; - } -} /** @namespace OCP */ var OCP = Object.assign({}, window.OCP); @@ -2308,14 +2298,3 @@ OC.set=function(name, value) { } context[tail]=value; }; - -// fix device width on windows phone -(function() { - if ("-ms-user-select" in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/)) { - var msViewportStyle = document.createElement("style"); - msViewportStyle.appendChild( - document.createTextNode("@-ms-viewport{width:auto!important}") - ); - document.getElementsByTagName("head")[0].appendChild(msViewportStyle); - } -})(); |