mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 14:11:23 -04:00
Updated popup icon to be purple when it's enabled
This commit is contained in:
parent
651dca464f
commit
f890739a38
3 changed files with 10 additions and 8 deletions
|
@ -86,6 +86,9 @@ class WebExtUI extends UI
|
|||
onMessage: (m) =>
|
||||
@enabled = m.enabled
|
||||
update()
|
||||
chrome.browserAction.setIcon
|
||||
path:
|
||||
32: "icons/status-" + (if @enabled then "on" else "off") + ".png"
|
||||
@postActive()
|
||||
|
||||
onDisconnect: (port) =>
|
||||
|
@ -95,6 +98,3 @@ class WebExtUI extends UI
|
|||
super connected
|
||||
if connected then @stats[0] += 1
|
||||
@postActive()
|
||||
chrome.browserAction.setIcon
|
||||
path:
|
||||
32: "icons/status-" + (if connected then "on" else "off") + ".png"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue