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", "name": "@kksh/desktop",
"version": "0.1.20", "version": "0.1.21",
"description": "", "description": "",
"type": "module", "type": "module",
"scripts": { "scripts": {

View File

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