From 5cf198a8adc05cdfd7460e6ff9b898633c59e51b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 11 Dec 2013 20:04:36 +0000 Subject: [PATCH] fix loading pandora with strange extensions installed --- static/js/pandora.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/pandora.js b/static/js/pandora.js index dd38ceed..5c41311f 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -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(/.*\?/, ''); } } }