Reset title when queue ends

This commit is contained in:
lucast committed 2026-10-05 00:26:34 +02:00
1 parent 30541eab8d
commit bdfa76f993
1 file changed
+8 -6
+8 -6
View File
@@ -3,12 +3,14 @@ const { currentSong, isPlaying } = usePlayer()
const debugView = useCookie("DEBUG_VIEW")
const debugViewEnabled = computed(() => String(debugView.value ?? "") === "1")
useHead({
titleTemplate: (titleChunk) =>
currentSong.value && isPlaying.value
? `${currentSong.value.name} - Now Playing - Music`
: `${titleChunk || "Home"} - Music`,
})
useHead(
computed(() => ({
titleTemplate:
currentSong.value && isPlaying.value
? `${currentSong.value.name} - Now Playing - Music`
: (titleChunk) => `${titleChunk || "Home"} - Music`,
})),
)
</script>
<template>