Updated popup icon to be purple when it's enabled

This commit is contained in:
Cecylia Bocovich 2019-06-27 10:41:15 -04:00
parent 651dca464f
commit f890739a38
3 changed files with 10 additions and 8 deletions

View file

@ -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"