@lvce-editor/main-process 6.29.1 → 6.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mainProcessMain.js +4 -1
- package/package.json +1 -1
package/dist/mainProcessMain.js
CHANGED
|
@@ -2284,13 +2284,16 @@ const listen$2$1 = ({
|
|
|
2284
2284
|
return webContents;
|
|
2285
2285
|
};
|
|
2286
2286
|
const getData$1 = (event, message) => {
|
|
2287
|
+
if (!message || !('method' in message)) {
|
|
2288
|
+
return message;
|
|
2289
|
+
}
|
|
2287
2290
|
const {
|
|
2288
2291
|
ports,
|
|
2289
2292
|
sender
|
|
2290
2293
|
} = event;
|
|
2291
2294
|
const data = {
|
|
2292
2295
|
...message,
|
|
2293
|
-
params: [...message.params, ...ports, sender.id]
|
|
2296
|
+
params: [...(Array.isArray(message.params) ? message.params : []), ...ports, sender.id]
|
|
2294
2297
|
};
|
|
2295
2298
|
return data;
|
|
2296
2299
|
};
|