(app) add custom title when recording

This commit is contained in:
Julien Calixte
2023-04-15 19:36:31 +02:00
parent 6bf41b9d61
commit f890012179
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { useTitle } from '@vueuse/core'
import { onUnmounted } from 'vue'
export const useLoopyTitle = (title: string) => {
if (title) {
useTitle(title, {
titleTemplate: '%s | Loopycode'
})
} else {
useTitle('Loopycode')
}
onUnmounted(() => {
useTitle('Loopycode')
})
}