split if is necessary

This commit is contained in:
SrGooglo 2024-03-25 16:32:04 +01:00
parent 7a4a760d6f
commit f48c1e6524

View File

@ -189,9 +189,12 @@ class ElectronApp {
if (explicitAction.length > 0) {
switch (explicitAction[0]) {
case "authorize": {
if (!explicitAction[2]) {
const [pkgid, token] = explicitAction[1].split("%23")
return this.authService.authorize(pkgid, token)
} else {
return this.authService.authorize(explicitAction[1], explicitAction[2])
}
}
default: {
return sendToRender("installation:invoked", explicitAction[0])