Browse Source

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

Jeremy Apthorp 5 years ago
parent
commit
8dfc896cfa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/renderer/window-setup.ts

+ 1 - 1
lib/renderer/window-setup.ts

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