You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2024/02/20 13:57:08 UTC
(cordova-electron) branch master updated: fix!: remove extra array wrapper from passed arguments (#266)
This is an automated email from the ASF dual-hosted git repository.
erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-electron.git
The following commit(s) were added to refs/heads/master by this push:
new 40227e1 fix!: remove extra array wrapper from passed arguments (#266)
40227e1 is described below
commit 40227e12ba880a1c5ad808b1ae8171e06e4f6116
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Tue Feb 20 22:57:03 2024 +0900
fix!: remove extra array wrapper from passed arguments (#266)
---
bin/templates/platform_www/cdv-electron-main.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/templates/platform_www/cdv-electron-main.js b/bin/templates/platform_www/cdv-electron-main.js
index d256bd5..8a0dd38 100644
--- a/bin/templates/platform_www/cdv-electron-main.js
+++ b/bin/templates/platform_www/cdv-electron-main.js
@@ -169,7 +169,7 @@ ipcMain.handle('cdv-plugin-exec', async (_, serviceName, action, ...args) => {
const plugin = require(cordova.services[serviceName]);
return plugin[action]
- ? plugin[action](args)
+ ? plugin[action](...args)
: Promise.reject(new Error(`The action "${action}" for the requested plugin service "${serviceName}" does not exist.`));
} else {
return Promise.reject(new Error(`The requested plugin service "${serviceName}" does not exist have native support.`));
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org