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 debugView = useCookie("DEBUG_VIEW")
const debugViewEnabled = computed(() => String(debugView.value ?? "") === "1") const debugViewEnabled = computed(() => String(debugView.value ?? "") === "1")
useHead({ useHead(
titleTemplate: (titleChunk) => computed(() => ({
currentSong.value && isPlaying.value titleTemplate:
? `${currentSong.value.name} - Now Playing - Music` currentSong.value && isPlaying.value
: `${titleChunk || "Home"} - Music`, ? `${currentSong.value.name} - Now Playing - Music`
}) : (titleChunk) => `${titleChunk || "Home"} - Music`,
})),
)
</script> </script>
<template> <template>