Move toggle initiation init-webext.coffee

Prevents repeat calls to update() on startup
This commit is contained in:
Cecylia Bocovich 2019-07-03 17:12:01 -04:00
parent 6210b5ea7f
commit 4494dbd3ca
2 changed files with 12 additions and 12 deletions

View file

@ -24,7 +24,7 @@ init = () ->
snowflake = new Snowflake config, ui, broker
log '== snowflake proxy =='
update()
ui.initToggle()
update = () ->
if !ui.enabled