MCPcopy Create free account
hub / github.com/anomalyco/opencode / handleNotificationClick

Function handleNotificationClick

packages/app/src/utils/notification-click.ts:7–13  ·  view source on GitHub ↗
(href?: string)

Source from the content-addressed store, hash-verified

5}
6
7export const handleNotificationClick = (href?: string) => {
8 window.focus()
9 if (!href) return
10 if (nav) return nav(href)
11 console.warn("notification-click: navigate function not set, falling back to window.location.assign")
12 window.location.assign(href)
13}

Callers 3

createPlatformFunction · 0.90
notifyFunction · 0.90

Calls 1

navFunction · 0.85

Tested by

no test coverage detected