Fill oc_webroot with the expected value
This commit is contained in:
parent
458ba4b55c
commit
a82d18d2f8
|
@ -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 = {};
|
||||
|
|
Loading…
Reference in New Issue