refactor: send the 'close' message asynchronously (#20796)
This commit is contained in:
parent
70fa9ff4c0
commit
8dfc896cfa
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ export const windowSetup = (
|
|||
if (guestInstanceId == null) {
|
||||
// Override default window.close.
|
||||
window.close = function () {
|
||||
ipcRendererInternal.sendSync('ELECTRON_BROWSER_WINDOW_CLOSE')
|
||||
ipcRendererInternal.send('ELECTRON_BROWSER_WINDOW_CLOSE')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue