aboutsummaryrefslogtreecommitdiffstats
path: root/proxy.js
diff options
context:
space:
mode:
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);