refactor: don't send ipcRenderer.sendSync() returnValue as an array (#26178)
This commit is contained in:
parent
83747ad21c
commit
0c2e2bca92
4 changed files with 4 additions and 4 deletions
|
@ -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: () => {}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue