diff --git a/proxy/init-badge.js b/proxy/init-badge.js index d8d9113..7684e68 100644 --- a/proxy/init-badge.js +++ b/proxy/init-badge.js @@ -38,7 +38,6 @@ class BadgeUI extends UI { turnOn() { const clients = this.active ? 1 : 0; this.popup.setChecked(true); - this.popup.setToggleText(messages.getMessage('popupTurnOff')); if (clients > 0) { this.popup.setStatusText(messages.getMessage('popupStatusOn', String(clients))); } else { @@ -52,7 +51,6 @@ class BadgeUI extends UI { turnOff() { this.popup.setChecked(false); - this.popup.setToggleText(messages.getMessage('popupTurnOn')); this.popup.setStatusText(messages.getMessage('popupStatusOff')); this.popup.setStatusDesc(''); this.popup.setEnabled(false); diff --git a/proxy/static/_locales/en_US/messages.json b/proxy/static/_locales/en_US/messages.json index 1ac15d9..e83a0fd 100644 --- a/proxy/static/_locales/en_US/messages.json +++ b/proxy/static/_locales/en_US/messages.json @@ -2,11 +2,8 @@ "appDesc": { "message": "Snowflake is a WebRTC pluggable transport for Tor." }, - "popupTurnOn": { - "message": "Turn On" - }, - "popupTurnOff": { - "message": "Turn Off" + "popupEnabled": { + "message": "Enabled" }, "popupLearnMore": { "message": "Learn more" diff --git a/proxy/static/embed.html b/proxy/static/embed.html index eb75c30..96bf90c 100644 --- a/proxy/static/embed.html +++ b/proxy/static/embed.html @@ -15,7 +15,7 @@