From 10fdaa23fcc3315748336ac73713d133ae6bba6c Mon Sep 17 00:00:00 2001 From: Timo <6156589+Shik3i@users.noreply.github.com> Date: Sat, 13 Jun 2026 04:48:25 +0200 Subject: [PATCH] fix: propagate audio settings from local storage and add compressor feedback --- extension/background.js | 2 +- extension/content.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/extension/background.js b/extension/background.js index f397b22..69e1225 100644 --- a/extension/background.js +++ b/extension/background.js @@ -1821,7 +1821,7 @@ async function handleAsyncMessage(message, sender, sendResponse) { } chrome.storage.onChanged.addListener(async (changes, area) => { - if (area !== 'sync' || !changes.audioSettings) return; + if (area !== 'local' || !changes.audioSettings) return; await ensureState(); if (!currentTabId) return; diff --git a/extension/content.js b/extension/content.js index 172b0b6..b986aa5 100644 --- a/extension/content.js +++ b/extension/content.js @@ -184,7 +184,7 @@ } } if (audioCtx.state === 'suspended') { - audioCtx.resume().catch(() => {}); + audioCtx.resume().catch(() => { reportLog('AudioContext resume failed - browser may need page interaction first', 'warn'); }); } return audioCtx; } @@ -242,6 +242,7 @@ rampGain(chain.dryGain, 1, t); rampGain(chain.compGain, 0, t); chain.active = false; + reportLog('Audio compressor disabled', 'info'); } function bypassCurrentAudioProcessing() { @@ -274,6 +275,7 @@ rampGain(chain.dryGain, 0, t); rampGain(chain.compGain, 1, t); chain.active = true; + reportLog('Audio compressor enabled', 'info'); } }