Simplify page title logic per review

This commit is contained in:
2026-02-17 20:19:14 +00:00
parent 0b887d62f6
commit 275eb46565
3 changed files with 16 additions and 25 deletions
+1 -7
View File
@@ -48,10 +48,6 @@
const {children} = $props()
const pageTitle = $derived.by(() => {
return getPageTitle({page: $page, pubkey: $pubkey})
})
const policies = [authPolicy, blockPolicy, trustPolicy, mostlyRestrictedPolicy]
// Add stuff to window for convenience
@@ -207,9 +203,7 @@
})
$effect(() => {
if (typeof document !== "undefined") {
document.title = pageTitle
}
document.title = getPageTitle({page: $page, pubkey: $pubkey})
})
</script>