Upload folder using huggingface_hub
Browse files- static/js/radio.js +1 -4
static/js/radio.js
CHANGED
|
@@ -341,7 +341,7 @@ let client = null;
|
|
| 341 |
let currentJob = null;
|
| 342 |
let tuneGeneration = 0;
|
| 343 |
let voiceEnabled = false;
|
| 344 |
-
let staticOn =
|
| 345 |
// sync the physical switch's look to the real state on load (it defaults to ON
|
| 346 |
// in the HTML, which was wrong whenever the saved state was OFF)
|
| 347 |
if (staticToggle) {
|
|
@@ -2104,9 +2104,6 @@ staticToggle?.addEventListener("click", () => {
|
|
| 2104 |
staticOn = !staticOn;
|
| 2105 |
staticToggle.classList.toggle("on", staticOn);
|
| 2106 |
staticToggle.setAttribute("aria-checked", String(staticOn));
|
| 2107 |
-
try {
|
| 2108 |
-
localStorage.setItem("lfr_static", staticOn ? "on" : "off");
|
| 2109 |
-
} catch (_) { /* storage unavailable */ }
|
| 2110 |
playClick();
|
| 2111 |
setStaticLevel(1 - signalStrength(frequency));
|
| 2112 |
});
|
|
|
|
| 341 |
let currentJob = null;
|
| 342 |
let tuneGeneration = 0;
|
| 343 |
let voiceEnabled = false;
|
| 344 |
+
let staticOn = true; // always start with the static hiss on
|
| 345 |
// sync the physical switch's look to the real state on load (it defaults to ON
|
| 346 |
// in the HTML, which was wrong whenever the saved state was OFF)
|
| 347 |
if (staticToggle) {
|
|
|
|
| 2104 |
staticOn = !staticOn;
|
| 2105 |
staticToggle.classList.toggle("on", staticOn);
|
| 2106 |
staticToggle.setAttribute("aria-checked", String(staticOn));
|
|
|
|
|
|
|
|
|
|
| 2107 |
playClick();
|
| 2108 |
setStaticLevel(1 - signalStrength(frequency));
|
| 2109 |
});
|