-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(){
|
function notifySongEndListener(){
|
||||||
if (typeof songEndFunc == "function")
|
if (typeof songEndFunc == "function"){
|
||||||
songEndFunc();
|
//create a slight pause in execution to allow the browser
|
||||||
|
//to update the display.
|
||||||
|
setTimeout(songEndFunc, 50);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getTrackInfo(song){
|
function getTrackInfo(song){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue