Merge pull request #1545 from owncloud/fix-oc_webroot
fixup oc_webroot correctly before and after setup
This commit is contained in:
commit
800609aaeb
1 changed files with 3 additions and 1 deletions
|
@ -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 = {};
|
||||
|
|
Loading…
Reference in a new issue