This commit is contained in:
@@ -96,7 +96,7 @@ export function AppShell({ children }: { children: React.ReactNode }) {
|
||||
const id = String(a?.id ?? a?.bookmarkId ?? '')
|
||||
if (!id || notifiedAlerts.current.has(id)) continue
|
||||
notifiedAlerts.current.add(id)
|
||||
new Notification('computer alert', { body: `${a?.title ?? 'Bookmark'} is due!`, icon: '/favicon.svg' })
|
||||
new Notification('superbrain alert', { body: `${a?.title ?? 'Bookmark'} is due!`, icon: '/favicon.svg' })
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -111,7 +111,7 @@ export function AppShell({ children }: { children: React.ReactNode }) {
|
||||
// an explicit user action (top-bar.tsx), not on every app mount.
|
||||
|
||||
const refreshPage = useCallback(() => {
|
||||
window.dispatchEvent(new Event('computer:bookmarks-changed'))
|
||||
window.dispatchEvent(new Event('superbrain:bookmarks-changed'))
|
||||
router.refresh()
|
||||
}, [router])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user