Update proxy config to take proxy type

This allows badge and standalone proxies to tell the broker what proxy
type they are.
This commit is contained in:
Cecylia Bocovich 2019-11-20 13:09:11 -05:00
parent 7277bb37cd
commit 8ab81fc6cd
7 changed files with 30 additions and 13 deletions

View file

@ -172,8 +172,9 @@ var debug, snowflake, config, broker, ui, log, dbg, init, update, silenceNotific
init = function() {
config = new Config;
config.proxyType = "webext";
ui = new WebExtUI();
broker = new Broker(config.brokerUrl);
broker = new Broker(config);
snowflake = new Snowflake(config, ui, broker);
log('== snowflake proxy ==');
ui.initToggle();