mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Added a new snowflake colour for active cons
If there is an active connection through your snowflake proxy, your snowflake will turn to green
This commit is contained in:
parent
526e42a443
commit
e93584029a
4 changed files with 18 additions and 0 deletions
|
@ -98,3 +98,7 @@ class WebExtUI extends UI
|
|||
super connected
|
||||
if connected then @stats[0] += 1
|
||||
@postActive()
|
||||
if @active
|
||||
chrome.browserAction.setIcon
|
||||
path:
|
||||
32: "icons/status-running.png"
|
||||
|
|
BIN
proxy/webext/icons/status-running.png
Normal file
BIN
proxy/webext/icons/status-running.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
11
proxy/webext/icons/status-running.svg
Normal file
11
proxy/webext/icons/status-running.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 8 KiB |
|
@ -16,6 +16,9 @@ port.onMessage.addListener((m) => {
|
|||
enabledText.innerText = 'Turn Off';
|
||||
ps[0].innerText = `${clients} client${(clients !== 1) ? 's' : ''} connected.`;
|
||||
ps[1].innerText = `Your snowflake has helped ${m.total} user${(m.total !== 1) ? 's' : ''} circumvent censorship in the last 24 hours.`;
|
||||
if (active) {
|
||||
img.src = `icons/status-running.png`;
|
||||
}
|
||||
} else {
|
||||
ps[0].innerText = "Snowflake is off";
|
||||
ps[1].innerText = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue