mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-11 17:29:44 +00:00
fix(desktop): update deeplink route for extension store (#100)
* fix(desktop): update deeplink route for extension store * chore(desktop): bump package version to 0.1.21
This commit is contained in:
parent
5573923a76
commit
183af3fb84
@ -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": {
|
||||||
|
@ -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", {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user