aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authort_f_m2011-04-14 02:22:37 +0900
committert_f_m2011-04-14 02:22:37 +0900
commite3a4b60019107d34e0b8440769874926e57a2272 (patch)
tree6395bc9d87ed70930005ee8b95e186047fb230eb
parentf296e7dfca02e8dba554666b76670977d3b4440d (diff)
downloadvimperator-plugins-e3a4b60019107d34e0b8440769874926e57a2272.tar.bz2
Fx4+vimp3で動作するように
-rw-r--r--autoproxychanger.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/autoproxychanger.js b/autoproxychanger.js
index 13db13c..809f344 100644
--- a/autoproxychanger.js
+++ b/autoproxychanger.js
@@ -162,8 +162,9 @@ ProxyChanger.prototype = {
panel.setAttribute('class', 'statusbarpanel-iconic');
panel.setAttribute('src', self.isEnable ? ENABLE_ICON : DISABLE_ICON);
panel.addEventListener('click', function(e) { self.isEnable = !self.isEnable; }, false);
- document.getElementById('status-bar').insertBefore(
- panel, document.getElementById('security-button').nextSibling);
+ var statusbar = document.getElementById('status-bar');
+ statusbar.insertBefore(
+ panel, statusbar.firstChild);
return panel;
},
get isEnable() _isEnable,
@@ -176,6 +177,8 @@ ProxyChanger.prototype = {
var manager = new ProxyChanger();
function init() {
+ if(typeof proxy_settings === 'string')
+ proxy_settings=eval(proxy_settings)
// initialize manager
proxy_settings.forEach(function(s) {
if (s.url instanceof RegExp && s.name)