diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-02-08 18:44:52 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-02-08 18:44:52 +0100 |
commit | d5f98a82aa5d1bee7971cb4c811b86083ce60ed6 (patch) | |
tree | f01c8442070fc7b0904cf8f0b298e8c8289e0637 | |
parent | 96042f1e5b343ed75f59fc2997b7e54c07b557da (diff) | |
download | nextcloud-server-d5f98a82aa5d1bee7971cb4c811b86083ce60ed6.tar.gz nextcloud-server-d5f98a82aa5d1bee7971cb4c811b86083ce60ed6.zip |
fix-oc_webroot
-rw-r--r-- | core/js/js.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js index c137f734d91..5f1870eb6ce 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -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 = {}; |