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:
Cecylia Bocovich 2019-07-02 10:49:28 -04:00
parent 526e42a443
commit e93584029a
4 changed files with 18 additions and 0 deletions

View file

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