fix(app): notification should navigate to session

This commit is contained in:
Adam 2026-02-12 20:04:19 -06:00
commit c9719dff72
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
5 changed files with 50 additions and 10 deletions

View file

@ -0,0 +1,12 @@
type WindowTarget = {
focus: () => void
location: {
assign: (href: string) => void
}
}
export const handleNotificationClick = (href?: string, target: WindowTarget = window) => {
target.focus()
if (!href) return
target.location.assign(href)
}