Reset title when queue ends
This commit is contained in:
1 parent
30541eab8d
commit
bdfa76f993
1 file changed
+8
-6
+8
-6
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user