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

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