show track title in document title
This commit is contained in:
parent
b60cc386dc
commit
89f6f3a1d0
|
@ -7,4 +7,5 @@ buckler = {
|
||||||
'url': "http://127.0.0.1:5400/buckler",
|
'url': "http://127.0.0.1:5400/buckler",
|
||||||
'app_id': 1,
|
'app_id': 1,
|
||||||
'app_key': """password""",
|
'app_key': """password""",
|
||||||
|
'login_url': "/buckler/login",
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,4 +88,5 @@ function change_track(track) {
|
||||||
document.getElementById('nowPlayingTitle').innerHTML = track.title;
|
document.getElementById('nowPlayingTitle').innerHTML = track.title;
|
||||||
|
|
||||||
document.getElementById('albumCover').firstChild.src = document.location.href + 'coverart?' + query;
|
document.getElementById('albumCover').firstChild.src = document.location.href + 'coverart?' + query;
|
||||||
|
document.title = 'Musik | ' + track.artist + ' - ' + track.title;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user