-should fix delay in rendering the now playing bar when song starts.
This commit is contained in:
parent
4441001eca
commit
14e049631e
1 changed files with 5 additions and 2 deletions
|
@ -29,8 +29,11 @@ function registerSongEndListener(func){
|
|||
}
|
||||
|
||||
function notifySongEndListener(){
|
||||
if (typeof songEndFunc == "function")
|
||||
songEndFunc();
|
||||
if (typeof songEndFunc == "function"){
|
||||
//create a slight pause in execution to allow the browser
|
||||
//to update the display.
|
||||
setTimeout(songEndFunc, 50);
|
||||
}
|
||||
}
|
||||
|
||||
function getTrackInfo(song){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue