Skip to content

Commit add64ab

Browse files
author
dsward2
committed
In index.html, in the startAudioPlayer() function, delay setting the "NOW PLAYING:" label for one second within a setTimeout() function. Sometimes the title data was not ready, the delay should provide enough time to avoid that problem.
1 parent 4189eab commit add64ab

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

LocalRadio/Web/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,9 @@
312312
console.log("startAudioPlayer");
313313

314314
var nowPlayingNavBarLink = window.document.getElementById("nowPlayingNavBarLink");
315-
nowPlayingNavBarLink.innerText = "NOW PLAYING: " + nowPlayingTitle.innerText;
315+
//nowPlayingNavBarLink.innerText = "NOW PLAYING: " + nowPlayingTitle.innerText;
316+
setTimeout(function() { nowPlayingNavBarLink.innerText = "NOW PLAYING: " + nowPlayingTitle.innerText; }, 1000);
317+
316318

317319
var needsAudioPlayerStart = true;
318320

0 commit comments

Comments
 (0)