Skip to content

Commit

Permalink
Bass boost slider bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianE00 committed May 16, 2024
1 parent 26f3f49 commit df0c3f0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/offscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
6 changes: 6 additions & 0 deletions src/js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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;
Expand All @@ -91,6 +96,7 @@ document.addEventListener('DOMContentLoaded', async () => {
level: volume,
});
});
*/

async function updateVolume(level) {
await chrome.runtime.sendMessage({ type: "adjust-level", level: level });
Expand Down

0 comments on commit df0c3f0

Please sign in to comment.