fix loading pandora with strange extensions installed

This commit is contained in:
j 2013-12-11 20:04:36 +00:00
parent d7d5008bbb
commit 5cf198a8ad

View file

@ -73,7 +73,7 @@ appPanel
var i, path, scripts = document.getElementsByTagName('script');
for (i = 0;i < scripts.length; i++) {
if(/pandora.js/.test(scripts[i].src)) {
return scripts[1].src.replace(/.*\?/, '');
return scripts[i].src.replace(/.*\?/, '');
}
}
}