aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-02-07 13:48:44 -0800
committerLukas Reschke <lukas@statuscode.ch>2013-02-07 13:48:44 -0800
commit217328e0e3656f0068b3e41ebc4cdc32b79f3fe4 (patch)
treecdfe0e664e8640610e719724ea32670e30134684 /core/js/js.js
parent867650ee474e5b7318056c0f3b01985dbd8c8cd1 (diff)
parenta82d18d2f8e13edab296daaf2bda917381e78810 (diff)
downloadnextcloud-server-217328e0e3656f0068b3e41ebc4cdc32b79f3fe4.tar.gz
nextcloud-server-217328e0e3656f0068b3e41ebc4cdc32b79f3fe4.zip
Merge pull request #1514 from owncloud/fix-setup
Fix setup
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 6b0c289850c..c137f734d91 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -5,6 +5,10 @@
* To the end of config/config.php to enable debug mode.
* The undefined checks fix the broken ie8 console
*/
+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 = {};