From 9bab3e36d34ce9068121fcf3f00efe66b5eca851 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 14 Oct 2024 08:53:02 +0300 Subject: Fixed bug that would jump to second_here when loading a new show --- client/js/radio_emulator.js | 1 + 1 file changed, 1 insertion(+) (limited to 'client/js') diff --git a/client/js/radio_emulator.js b/client/js/radio_emulator.js index 627f057..38f901a 100644 --- a/client/js/radio_emulator.js +++ b/client/js/radio_emulator.js @@ -194,6 +194,7 @@ function loadShowCallback(json, params) placeholders.currentTime.innerText = values.current_time; audioElement.addEventListener('ended', function(){ values.current_time = 0; + values.seconds_here = 0; placeholders.currentTime.value = 0; FetchJSON(`${listRequest}`, hashCallback, [ new Date().getTime() ]); // setTimeout(sync_radio, 10000); -- cgit v1.2.3