From 40227e12ba880a1c5ad808b1ae8171e06e4f6116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A8=E3=83=AA=E3=82=B9?= Date: Tue, 20 Feb 2024 22:57:03 +0900 Subject: [PATCH] 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.`));