feat: persist volume level in localStorage

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
HoneyandClaude Sonnet 4.6 committed 2026-05-19 21:39:56 +02:00
1 parent 4f152028f4
commit 4b2f277ff7
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -765,6 +765,7 @@ export function setVolume(v) {
if (absAudio) absAudio.volume = vol;
document.querySelectorAll('.volume-slider-sync').forEach(el => { el.value = v; });
if (HAS_BRIDGE) _nsBridge('setVolume', vol);
try { localStorage.setItem('ns_volume', v); } catch (_) {}
}
// ─── MEDIA SESSION ────────────────────────────────────────────────────────