summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-01-31 19:07:39 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-01-31 19:07:39 +0100
commitbdea197523f12a57c9b2e8e450e7c53c2eec5d9b (patch)
treeef0cf73b2d8a84850e65c5f026ddc2121f4a4493 /core/js/js.js
parent61ee72a89d65de50609d4335e21f64f810e98d9a (diff)
downloadnextcloud-server-bdea197523f12a57c9b2e8e450e7c53c2eec5d9b.tar.gz
nextcloud-server-bdea197523f12a57c9b2e8e450e7c53c2eec5d9b.zip
Move custom polyfills to the server bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js21
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);
- }
-})();