mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: don't send ipcRenderer.sendSync() returnValue as an array (#26178)
This commit is contained in:
@@ -457,7 +457,7 @@ const addReplyInternalToEvent = (event: any) => {
|
||||
|
||||
const addReturnValueToEvent = (event: any) => {
|
||||
Object.defineProperty(event, 'returnValue', {
|
||||
set: (value) => event.sendReply([value]),
|
||||
set: (value) => event.sendReply(value),
|
||||
get: () => {}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user