mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 14:11:23 -04:00
Add a WebExtUI the makes use of the new assests
The browser icon shows the on/off state.
This commit is contained in:
parent
2b1852c1a5
commit
e7f3ade068
5 changed files with 18 additions and 8 deletions
|
@ -42,3 +42,12 @@ class DebugUI extends UI
|
|||
# Scroll to latest
|
||||
@$msglog.value += msg + '\n'
|
||||
@$msglog.scrollTop = @$msglog.scrollHeight
|
||||
|
||||
|
||||
class WebExtUI extends UI
|
||||
setActive: (connected) =>
|
||||
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