support multiple args

This commit is contained in:
SrGooglo 2024-01-25 23:12:21 +01:00
parent 0774fbed8c
commit c86ca1deb9

View File

@ -48,11 +48,11 @@ class ElectronApp {
"pkg:apply": (event, manifest_id, changes) => { "pkg:apply": (event, manifest_id, changes) => {
this.pkgManager.applyChanges(manifest_id, changes) this.pkgManager.applyChanges(manifest_id, changes)
}, },
"pkg:uninstall": (event, manifest_id) => { "pkg:uninstall": (event, ...args) => {
this.pkgManager.uninstall(manifest_id) this.pkgManager.uninstall(...args)
}, },
"pkg:execute": (event, manifest_id) => { "pkg:execute": (event, ...args) => {
this.pkgManager.execute(manifest_id) this.pkgManager.execute(...args)
}, },
"pkg:open": (event, manifest_id) => { "pkg:open": (event, manifest_id) => {
this.pkgManager.open(manifest_id) this.pkgManager.open(manifest_id)