mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
null check windowMain.win
This commit is contained in:
@@ -67,6 +67,10 @@ export class MenuMain {
|
||||
}
|
||||
|
||||
private initContextMenu() {
|
||||
if (this.main.windowMain.win == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
const selectionMenu = Menu.buildFromTemplate([
|
||||
{ role: 'copy' },
|
||||
{ type: 'separator' },
|
||||
|
||||
Reference in New Issue
Block a user