Skip to content

Commit

Permalink
Fix volume storage
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPXL committed Mar 13, 2024
1 parent e3cfd2c commit c5ba8ae
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/PlaybackSection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export function init(load: () => Promise<void>, play: () => void, stop: () => vo
localStorage.setItem(storagePrefix + "_volume", volumeSlider.value);
AudioPlayer.setVolume((volumeSlider.valueAsNumber / 100) * 10);
});
volumeSlider.dispatchEvent(new Event("input"));

speakerIcon.addEventListener("click", () => {
if (volumeSlider.valueAsNumber === 0) {
Expand Down

0 comments on commit c5ba8ae

Please sign in to comment.