From 570933b1ec541075efcb5178d76e0f025017cad9 Mon Sep 17 00:00:00 2001 From: ale Date: Tue, 20 May 2025 02:06:48 +0200 Subject: [PATCH] audio load Signed-off-by: ale --- src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index c13d75a..41a1139 100644 --- a/src/App.js +++ b/src/App.js @@ -76,7 +76,7 @@ const App = () => { } }) } else if (!json?.media && bounce.search('Now Playing: null') === -1) { - setLink('#') + setLink('') setTitle('Stream Radio') setBounce('Now Playing: null') } @@ -91,7 +91,7 @@ const App = () => { loadListeners() }, (Math.floor(Math.random() * 20) + 10) * 1000) return () => clearInterval(inter) - }, [audioElmRef.current]) + }, []) useEffect(() => { if (audioElmRef.current && audioElmRef.current.volume !== currentVolume && currentVolume >= 0 && currentVolume <= 1) { audioElmRef.current.volume = currentVolume