mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 10:34:18 +00:00
split if is necessary
This commit is contained in:
parent
7a4a760d6f
commit
f48c1e6524
@ -189,9 +189,12 @@ class ElectronApp {
|
|||||||
if (explicitAction.length > 0) {
|
if (explicitAction.length > 0) {
|
||||||
switch (explicitAction[0]) {
|
switch (explicitAction[0]) {
|
||||||
case "authorize": {
|
case "authorize": {
|
||||||
const [pkgid, token] = explicitAction[1].split("%23")
|
if (!explicitAction[2]) {
|
||||||
|
const [pkgid, token] = explicitAction[1].split("%23")
|
||||||
return this.authService.authorize(pkgid, token)
|
return this.authService.authorize(pkgid, token)
|
||||||
|
} else {
|
||||||
|
return this.authService.authorize(explicitAction[1], explicitAction[2])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
return sendToRender("installation:invoked", explicitAction[0])
|
return sendToRender("installation:invoked", explicitAction[0])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user