mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
Use a static label for the button
Trac: 31685
This commit is contained in:
parent
a5071ec1d6
commit
36eb07a6fc
5 changed files with 3 additions and 13 deletions
|
@ -28,7 +28,6 @@ port.onMessage.addListener((m) => {
|
|||
|
||||
if (enabled) {
|
||||
popup.setChecked(true);
|
||||
popup.setToggleText(chrome.i18n.getMessage('popupTurnOff'));
|
||||
if (clients > 0) {
|
||||
popup.setStatusText(chrome.i18n.getMessage('popupStatusOn', String(clients)));
|
||||
} else {
|
||||
|
@ -37,7 +36,6 @@ port.onMessage.addListener((m) => {
|
|||
popup.setStatusDesc((total > 0) ? chrome.i18n.getMessage('popupDescOn', String(total)) : '');
|
||||
} else {
|
||||
popup.setChecked(false);
|
||||
popup.setToggleText(chrome.i18n.getMessage('popupTurnOn'));
|
||||
popup.setStatusText(chrome.i18n.getMessage('popupStatusOff'));
|
||||
popup.setStatusDesc("");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue