apache / cordova-electron

Apache Cordova Electron
Apache License 2.0
125 stars 58 forks source link

fix!: remove extra array wrapper from passed arguments #266

Closed erisu closed 7 months ago

erisu commented 7 months ago

Platforms affected

electron

Motivation and Context

Arguments passed to plugins were accidentally being double-wrapped. This update properly removes the wrapping so that plugin developers don't always have to read from index [0]. Additionally, other platforms did not have this double wrapping.

Description

Updated the IPC handler to expand the args that are passed to plugins.

Testing

Checklist