diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-02-07 21:13:57 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-02-07 21:13:57 +0100 |
commit | a82d18d2f8e13edab296daaf2bda917381e78810 (patch) | |
tree | 75cfe038f9f96d8f82d71f547a431b448c67f77a | |
parent | 458ba4b55c38999a1eecb0163b167ba97365a403 (diff) | |
download | nextcloud-server-a82d18d2f8e13edab296daaf2bda917381e78810.tar.gz nextcloud-server-a82d18d2f8e13edab296daaf2bda917381e78810.zip |
Fill oc_webroot with the expected value
-rw-r--r-- | core/js/js.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js index 80914e954e5..c137f734d91 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -8,6 +8,7 @@ var oc_debug; var oc_webroot; var oc_requesttoken; +oc_webroot = 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 = {}; |