Skip to content

Commit

Permalink
fix!: remove extra array wrapper from passed arguments (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
erisu authored Feb 20, 2024
1 parent 972734e commit 40227e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/templates/platform_www/cdv-electron-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`));
Expand Down

0 comments on commit 40227e1

Please sign in to comment.