From 589830372fa76f58b1b10f4131c094cb00550343 Mon Sep 17 00:00:00 2001 From: otsune Date: Thu, 3 Apr 2008 08:17:04 +0000 Subject: 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 --- proxy.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'proxy.js') 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); -- cgit v1.2.3