show track title in document title

This commit is contained in:
iou1name 2019-10-29 09:37:49 -04:00
parent b60cc386dc
commit 89f6f3a1d0
2 changed files with 2 additions and 0 deletions

View File

@ -7,4 +7,5 @@ buckler = {
'url': "http://127.0.0.1:5400/buckler",
'app_id': 1,
'app_key': """password""",
'login_url': "/buckler/login",
}

View File

@ -88,4 +88,5 @@ function change_track(track) {
document.getElementById('nowPlayingTitle').innerHTML = track.title;
document.getElementById('albumCover').firstChild.src = document.location.href + 'coverart?' + query;
document.title = 'Musik | ' + track.artist + ' - ' + track.title;
}