mirror of
https://github.com/bitwarden/browser
synced 2025-12-27 21:53:25 +00:00
null check windowMain.win
This commit is contained in:
@@ -7,7 +7,9 @@ export class DesktopMainMessagingService implements MessagingService {
|
||||
|
||||
send(subscriber: string, arg: any = {}) {
|
||||
const message = Object.assign({}, { command: subscriber }, arg);
|
||||
this.main.windowMain.win.webContents.send('messagingService', message);
|
||||
this.main.messagingMain.onMessage(message);
|
||||
if (this.main.windowMain.win != null) {
|
||||
this.main.windowMain.win.webContents.send('messagingService', message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user