refactor: send the 'close' message asynchronously (#20796)

This commit is contained in:
Jeremy Apthorp 2019-10-30 13:13:01 -07:00 committed by GitHub
parent 70fa9ff4c0
commit 8dfc896cfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')
}
}