Fill oc_webroot with the expected value

This commit is contained in:
Bart Visscher 2013-02-07 21:13:57 +01:00
parent 458ba4b55c
commit a82d18d2f8
1 changed files with 1 additions and 0 deletions

View File

@ -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 = {};