From df0c3f0d2a4ad11d4c9887f9188d49ee17d08c16 Mon Sep 17 00:00:00 2001 From: Christian Ewing Date: Thu, 16 May 2024 13:25:05 -0600 Subject: [PATCH] Bass boost slider bug fixed --- src/js/offscreen.js | 3 +++ src/js/popup.js | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/src/js/offscreen.js b/src/js/offscreen.js index 262ce0f..ce5efaa 100644 --- a/src/js/offscreen.js +++ b/src/js/offscreen.js @@ -61,6 +61,9 @@ chrome.runtime.onMessage.addListener(async (msg) => { if (gainNodes.has(msg.tabId) && biquadFilters.has(msg.tabId)){ console.log('[OFFSCREEN] ERROR found gain node in lowshelf-start '); } + else if(bigquadFilters.had(msg.tabId)){ + console.log('[OFFSCREEN-ERROR] Found biquad filter in lowshelf-start'); + } else{ console.log('[OFFSCREEN] Creating new gain node in lowshelf-start'); diff --git a/src/js/popup.js b/src/js/popup.js index 2a31e1e..b0896dc 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -9,10 +9,13 @@ document.addEventListener('DOMContentLoaded', async () => { let voiceBoost = document.getElementById('voiceBoost'); let bassBoost = document.getElementById('bassBoost'); let defaultButton = document.getElementById("defaultButton"); + // NOTE: DEPRICATED + /* let bassVolumeSlider = document.getElementById('bassVolumeSlider'); let midVolumeSlider = document.getElementById('midVolumeSlider'); let bassRangeValue = document.getElementById('bassRangeValue'); let midRangeValue = document.getElementById('midRangeValue'); + */ // Currently for testing purposes voiceBoost.addEventListener('click', async () => { @@ -68,6 +71,8 @@ document.addEventListener('DOMContentLoaded', async () => { }); }); +// NOTE: DEPRICATED + /* bassVolumeSlider.addEventListener('input', async (event) => { bassRangeValue.innerText = event.target.value; const volume = event.target.value / 100; @@ -91,6 +96,7 @@ document.addEventListener('DOMContentLoaded', async () => { level: volume, }); }); + */ async function updateVolume(level) { await chrome.runtime.sendMessage({ type: "adjust-level", level: level });