From c86ca1deb9cd634caf785bebc6c1954bb1f52067 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Thu, 25 Jan 2024 23:12:21 +0100 Subject: [PATCH] support multiple args --- src/main/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/index.js b/src/main/index.js index 1d2e61f..5c04021 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -48,11 +48,11 @@ class ElectronApp { "pkg:apply": (event, manifest_id, changes) => { this.pkgManager.applyChanges(manifest_id, changes) }, - "pkg:uninstall": (event, manifest_id) => { - this.pkgManager.uninstall(manifest_id) + "pkg:uninstall": (event, ...args) => { + this.pkgManager.uninstall(...args) }, - "pkg:execute": (event, manifest_id) => { - this.pkgManager.execute(manifest_id) + "pkg:execute": (event, ...args) => { + this.pkgManager.execute(...args) }, "pkg:open": (event, manifest_id) => { this.pkgManager.open(manifest_id)