mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 14:11:23 -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
|
@ -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"
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<p id="statusdesc"></p>
|
||||
</div>
|
||||
<div class="b button">
|
||||
<label id="toggle" for="enabled">__MSG_popupTurnOn__</label>
|
||||
<label id="toggle" for="enabled">__MSG_popupEnabled__</label>
|
||||
<label class="switch">
|
||||
<input id="enabled" type="checkbox" />
|
||||
<span class="slider round"></span>
|
||||
|
|
|
@ -35,9 +35,6 @@ class Popup {
|
|||
setChecked(checked) {
|
||||
document.getElementById('enabled').checked = checked;
|
||||
}
|
||||
setToggleText(txt) {
|
||||
document.getElementById('toggle').innerText = txt;
|
||||
}
|
||||
static fill(n, func) {
|
||||
switch(n.nodeType) {
|
||||
case 3: { // Node.TEXT_NODE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue