fix: ipcRemote.sendSync regression after moving away from JSON for return values (#13941)
This commit is contained in:
parent
a7052efaf4
commit
9a1ad2b93f
4 changed files with 5 additions and 2 deletions
|
@ -3,7 +3,6 @@
|
|||
'use strict'
|
||||
|
||||
const {send, sendSync} = binding
|
||||
const {parse} = JSON
|
||||
|
||||
const ipcRenderer = {
|
||||
send (...args) {
|
||||
|
@ -11,7 +10,7 @@ const ipcRenderer = {
|
|||
},
|
||||
|
||||
sendSync (...args) {
|
||||
return parse(sendSync('ipc-message-sync', args))
|
||||
return sendSync('ipc-message-sync', args)[0]
|
||||
},
|
||||
|
||||
// No-ops since events aren't received
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue