diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-01-31 23:03:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-31 23:03:23 +0100 |
commit | 2124ff65b673698dcb305b835b3ba4bbd438c074 (patch) | |
tree | a60d762f4ed64c99130459b72983999165ad0a41 /core/js/js.js | |
parent | f2ab8dd59cc61fdeb8fa556b9b7ca98facab38e9 (diff) | |
parent | bdea197523f12a57c9b2e8e450e7c53c2eec5d9b (diff) | |
download | nextcloud-server-2124ff65b673698dcb305b835b3ba4bbd438c074.tar.gz nextcloud-server-2124ff65b673698dcb305b835b3ba4bbd438c074.zip |
Merge pull request #13958 from nextcloud/refactor/custom-polyfills-bundle
Move custom polyfills to the server bundle
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); - } -})(); |