fix: optimize ChangeTitle calls for artist and track in now-playing component

This commit is contained in:
snusxd
2026-04-14 14:05:56 +03:00
parent 9b1c8f710e
commit a33c9a8d84

View File

@@ -67,8 +67,8 @@ onMounted(() => {
if (header.value !== 'silence...') ChangeTitle(header, header.value, 'silence...')
primary_color.value = '#656565'
labelurl.value = '/default-cover.png'
ChangeTitle(artist, artist.value, 'today...')
ChangeTitle(track, track.value, "we're silnce...")
if (artist.value != 'today...') ChangeTitle(artist, artist.value, 'today...')
if (track.value != "we're silnce...") ChangeTitle(track, track.value, "we're silnce...")
}
}
timerId = setTimeout(updateSong, 10000)