1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 13:23:34 +00:00

Ensure dialog is attached to parent window (#691)

This commit is contained in:
Oscar Hinton
2022-02-22 20:06:14 +01:00
committed by GitHub
parent 60878cd4ed
commit 842d6cd001

View File

@@ -17,7 +17,7 @@ export class ElectronMainMessagingService implements MessagingService {
});
ipcMain.handle("showMessageBox", (event, options) => {
return dialog.showMessageBox(options);
return dialog.showMessageBox(this.windowMain.win, options);
});
ipcMain.handle("openContextMenu", (event, options: { menu: RendererMenuItem[] }) => {