diff options
| author | Adam <[email protected]> | 2026-02-12 20:04:19 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2026-02-12 20:04:36 -0600 |
| commit | c9719dff7223aa1fc19540f3cd627c7f40e4bf36 (patch) | |
| tree | 05032d15edce5b5c0d2cecd0e919b4365b531329 /packages/app/src/entry.tsx | |
| parent | 7f95cc64c57b439f58833d0300a1da93b3b893df (diff) | |
| download | opencode-c9719dff7223aa1fc19540f3cd627c7f40e4bf36.tar.gz opencode-c9719dff7223aa1fc19540f3cd627c7f40e4bf36.zip | |
fix(app): notification should navigate to session
Diffstat (limited to 'packages/app/src/entry.tsx')
| -rw-r--r-- | packages/app/src/entry.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/app/src/entry.tsx b/packages/app/src/entry.tsx index f041204dc..3a85086b4 100644 --- a/packages/app/src/entry.tsx +++ b/packages/app/src/entry.tsx @@ -4,6 +4,7 @@ import { AppBaseProviders, AppInterface } from "@/app" import { Platform, PlatformProvider } from "@/context/platform" import { dict as en } from "@/i18n/en" import { dict as zh } from "@/i18n/zh" +import { handleNotificationClick } from "@/utils/notification-click" import pkg from "../package.json" const DEFAULT_SERVER_URL_KEY = "opencode.settings.dat:defaultServerUrl" @@ -68,11 +69,7 @@ const notify: Platform["notify"] = async (title, description, href) => { }) notification.onclick = () => { - window.focus() - if (href) { - window.history.pushState(null, "", href) - window.dispatchEvent(new PopStateEvent("popstate")) - } + handleNotificationClick(href) notification.close() } } |
