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.`));