We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
document.title
1 parent 76c2b01 commit 2bcb2c2Copy full SHA for 2bcb2c2
src/components/header/ConversationHeaderInfo.tsx
@@ -1,4 +1,4 @@
1
-import { Show } from 'solid-js'
+import { Show, createEffect } from 'solid-js'
2
import { useStore } from '@nanostores/solid'
3
import { conversationMap, currentConversationId } from '@/stores/conversation'
4
import { useI18n } from '@/hooks'
@@ -11,6 +11,8 @@ export default () => {
11
return $conversationMap()[$currentConversationId()]
12
}
13
14
+ createEffect(() => { document.title = currentConversation() ? `Anse • ${(currentConversation().name || t('conversations.untitled'))}` : 'Anse' })
15
+
16
return (
17
<div class="fi gap-1 max-w-40vw px-2 overflow-hidden text-sm">
18
<Show when={currentConversation()}>
0 commit comments