Wrap remote value being set as an arg
This commit is contained in:
parent
e5f70f90a4
commit
7065123266
2 changed files with 5 additions and 3 deletions
|
@ -360,9 +360,10 @@ ipcMain.on('ELECTRON_BROWSER_MEMBER_CALL', function (event, id, method, args) {
|
|||
}
|
||||
})
|
||||
|
||||
ipcMain.on('ELECTRON_BROWSER_MEMBER_SET', function (event, id, name, value) {
|
||||
ipcMain.on('ELECTRON_BROWSER_MEMBER_SET', function (event, id, name, args) {
|
||||
try {
|
||||
let obj = objectsRegistry.get(id)
|
||||
const [value] = unwrapArgs(event.sender, args)
|
||||
const obj = objectsRegistry.get(id)
|
||||
|
||||
if (obj == null) {
|
||||
throwRPCError(`Cannot set property '${name}' on missing remote object ${id}`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue