Fix missing remote object error when calling remote function created in preload script (#15444)
* fix: report wrong context error based on contextId * fix: destroyed remote renderer warning is now async
This commit is contained in:
parent
b2e1a93177
commit
a8f2646ba6
5 changed files with 54 additions and 21 deletions
5
spec/fixtures/module/preload-remote-function.js
vendored
Normal file
5
spec/fixtures/module/preload-remote-function.js
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
const { remote, ipcRenderer } = require('electron')
|
||||
remote.getCurrentWindow().rendererFunc = () => {
|
||||
ipcRenderer.send('done')
|
||||
}
|
||||
remote.getCurrentWindow().rendererFunc()
|
Loading…
Add table
Add a link
Reference in a new issue