fix Ox.PATH
This commit is contained in:
parent
acbc0f4e59
commit
41af852f17
1 changed files with 2 additions and 2 deletions
|
@ -91,8 +91,8 @@ Ox.SHORT_MONTHS = Ox.MONTHS.map(function(val) {
|
||||||
Ox.PATH = (function() {
|
Ox.PATH = (function() {
|
||||||
// IE8 can't apply slice to NodeLists, see Ox.slice
|
// IE8 can't apply slice to NodeLists, see Ox.slice
|
||||||
var index, scripts = document.getElementsByTagName('script');
|
var index, scripts = document.getElementsByTagName('script');
|
||||||
for (index = scripts.length; index >= 0; index--) {
|
for (index = scripts.length - 1; index >= 0; index--) {
|
||||||
var src = element.src;
|
var src = scripts[index].src;
|
||||||
if (/Ox\.js(\?\d+|)$/.test(src)) {
|
if (/Ox\.js(\?\d+|)$/.test(src)) {
|
||||||
return src.replace(/Ox\.js(\?\d+|)$/, '');
|
return src.replace(/Ox\.js(\?\d+|)$/, '');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue