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
+6 -4
+6 -4
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(() => ({
titleTemplate:
currentSong.value && isPlaying.value currentSong.value && isPlaying.value
? `${currentSong.value.name} - Now Playing - Music` ? `${currentSong.value.name} - Now Playing - Music`
: `${titleChunk || "Home"} - Music`, : (titleChunk) => `${titleChunk || "Home"} - Music`,
}) })),
)
</script> </script>
<template> <template>