aboutsummaryrefslogtreecommitdiffstats
path: root/proxy.js
diff options
context:
space:
mode:
authorotsune2008-04-03 08:17:04 +0000
committerotsune2008-04-03 08:17:04 +0000
commit589830372fa76f58b1b10f4131c094cb00550343 (patch)
tree8e153bdf032f5d2a644817b7111aed727757e010 /proxy.js
parent31ed477450f55042d3e88e13b4a44904ac07668b (diff)
downloadvimperator-plugins-589830372fa76f58b1b10f4131c094cb00550343.tar.bz2
lang/javascript/vimperator-plugins/proxy.js: use liberator.options.setPref
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@8770 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'proxy.js')
-rw-r--r--proxy.js17
1 files changed, 1 insertions, 16 deletions
diff --git a/proxy.js b/proxy.js
index 8448da8..51ceb10 100644
--- a/proxy.js
+++ b/proxy.js
@@ -58,23 +58,8 @@
);
for (var j = 0; j < proxy_settings[i].setting.length; j++) {
-
var conf = proxy_settings[i].setting[j];
- switch (conf.label) {
- case "network.proxy.type":
- case "network.proxy.http_port":
- case "network.proxy.ssl_port":
- prefs.setIntPref(conf.label, conf.param);
- break;
- case "network.proxy.http":
- case "network.proxy.ssl":
- case "network.proxy.no_proxies_on":
- case "network.proxy.autoconfig_url":
- case "network.proxy.socks":
- prefs.setCharPref(conf.label, conf.param);
- break;
- }
-
+ liberator.options.setPref(conf.label, conf.param);
}
liberator.echo("set config:" + name);