From f48c1e6524788320efaf0adabf18a975ed370ac1 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Mon, 25 Mar 2024 16:32:04 +0100 Subject: [PATCH] split if is necessary --- src/main/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/index.js b/src/main/index.js index e82470c..2a55508 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -189,9 +189,12 @@ class ElectronApp { if (explicitAction.length > 0) { switch (explicitAction[0]) { case "authorize": { - const [pkgid, token] = explicitAction[1].split("%23") - - return this.authService.authorize(pkgid, token) + 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])