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