basic check of existing property in dashboard.js

fixes #924
This commit is contained in:
Roberto Soto 2019-12-04 03:42:34 -08:00
parent 55d5b405ee
commit 342154fe41
1 changed files with 1 additions and 2 deletions

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');