Page titles (#16) (#62)

Closes #16

Reviewed-on: coracle/flotilla#62
Co-authored-by: triesap <tyson@radroots.org>
Co-committed-by: triesap <tyson@radroots.org>
This commit is contained in:
2026-02-17 20:39:08 +00:00
committed by Jon Staab
parent 621c0d839c
commit b114a724e2
3 changed files with 157 additions and 0 deletions
+6
View File
@@ -7,6 +7,7 @@
import {App, type URLOpenListenerEvent} from "@capacitor/app"
import {dev} from "$app/environment"
import {goto} from "$app/navigation"
import {page} from "$app/stores"
import {sync, throttled} from "@welshman/store"
import {call} from "@welshman/lib"
import {defaultSocketPolicies} from "@welshman/net"
@@ -42,6 +43,7 @@
import * as notifications from "@app/util/notifications"
import * as storage from "@app/util/storage"
import {syncKeyboard} from "@app/util/keyboard"
import {getPageTitle} from "@app/util/title"
import NewNotificationSound from "@src/app/components/NewNotificationSound.svelte"
const {children} = $props()
@@ -199,6 +201,10 @@
App.removeAllListeners()
unsubscribe.then(call)
})
$effect(() => {
document.title = getPageTitle({page: $page, pubkey: $pubkey})
})
</script>
<svelte:head>