forked from coracle/flotilla
Simplify page title logic per review
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user