Compare commits

...

2 Commits

Author SHA1 Message Date
Huakun Shen
da5dc6ba57
chore(desktop): bump package version to 0.1.21 2025-02-11 02:29:11 -05:00
Huakun Shen
c014997295
fix(desktop): update deeplink route for extension store 2025-02-11 02:25:06 -05:00
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@kksh/desktop",
"version": "0.1.20",
"version": "0.1.21",
"description": "",
"type": "module",
"scripts": {

View File

@ -58,7 +58,7 @@ export async function handleKunkunProtocol(parsedUrl: URL) {
const parsed = v.parse(StorePathSearchParams, params)
openMainWindow()
if (parsed.identifier) {
goto(`/extension/store/${parsed.identifier}`)
goto(i18n.resolveRoute(`/app/extension/store/${parsed.identifier}`))
} else {
goto(i18n.resolveRoute("/app/extension/store"))
}
@ -66,7 +66,7 @@ export async function handleKunkunProtocol(parsedUrl: URL) {
emitRefreshDevExt()
} else if (href.startsWith(DEEP_LINK_PATH_AUTH_CONFIRM)) {
openMainWindow()
goto(`/auth/confirm?${parsedUrl.searchParams.toString()}`)
goto(i18n.resolveRoute(`/app/auth/confirm?${parsedUrl.searchParams.toString()}`))
} else {
console.error("Invalid path:", pathname)
toast.error("Invalid path", {