Merge pull request #925 from althost/dashboard_fix

Fix Dashboard when current instance has no metadata
This commit is contained in:
Kyle Robbertze 2019-12-05 12:10:54 +02:00 committed by GitHub
commit 1c2906f5ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,8 +130,7 @@ function updatePlaybar(){
$('#current').html("<span style='color:red; font-weight:bold'>"+$.i18n._("Recording:")+"</span>"+currentSong.name+",");
} else {
$('#current').text(currentSong.name+",");
if (currentSong.metadata.artwork_data) {
if (currentSong.metadata && currentSong.metadata.artwork_data) {
var check_current_song = Cookies.get('current_track');
var loaded = Cookies.get('loaded');