]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix-oc_webroot
authorBart Visscher <bartv@thisnet.nl>
Fri, 8 Feb 2013 17:44:52 +0000 (18:44 +0100)
committerBart Visscher <bartv@thisnet.nl>
Fri, 8 Feb 2013 17:44:52 +0000 (18:44 +0100)
core/js/js.js

index c137f734d919592e57891280be0e06d1104e510a..5f1870eb6ceb28488e3f7285477131dedc2f8487 100644 (file)
@@ -8,7 +8,9 @@
 var oc_debug;
 var oc_webroot;
 var oc_requesttoken;
-oc_webroot = oc_webroot || location.pathname.substr(0, location.pathname.lastIndexOf('/'));
+if (typeof oc_webroot === "undefined") {
+       oc_webroot = location.pathname.substr(0, location.pathname.lastIndexOf('/'));
+}
 if (oc_debug !== true || typeof console === "undefined" || typeof console.log === "undefined") {
        if (!window.console) {
                window.console = {};