From 4eb95b5ba05a2a4c3adc1357e49b18a6e07d37a7 Mon Sep 17 00:00:00 2001 From: codey Date: Sun, 22 Jun 2025 07:53:02 -0400 Subject: [PATCH] formatting/minor --- public/scripts/player.js | 1 + src/components/AudioPlayer.jsx | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/public/scripts/player.js b/public/scripts/player.js index 83ad5b6..a1a1a79 100644 --- a/public/scripts/player.js +++ b/public/scripts/player.js @@ -120,6 +120,7 @@ initialize = () => { const togglePlayback = () => { if (window.isPlaying) { sound.stop(); + sound.unload(); } else { sound.play(); } diff --git a/src/components/AudioPlayer.jsx b/src/components/AudioPlayer.jsx index 13d2074..b247cc0 100644 --- a/src/components/AudioPlayer.jsx +++ b/src/components/AudioPlayer.jsx @@ -2,7 +2,6 @@ import {useState, React} from "react"; import jQuery from "jquery"; import Play from '@mui/icons-material/PlayArrow'; import Pause from '@mui/icons-material/Pause'; -