1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

update to electron 2.x

This commit is contained in:
Kyle Spearrin
2018-05-31 08:09:56 -04:00
parent e0190f14be
commit 98e2e611f8
3 changed files with 11 additions and 11 deletions

View File

@@ -217,11 +217,11 @@ export class BaseMenu {
this.windowMain.win.webContents.on('context-menu', (e, props) => {
const selected = props.selectionText && props.selectionText.trim() !== '';
if (props.isEditable && selected) {
inputSelectionMenu.popup(this.windowMain.win);
inputSelectionMenu.popup({ window: this.windowMain.win });
} else if (props.isEditable) {
inputMenu.popup(this.windowMain.win);
inputMenu.popup({ window: this.windowMain.win });
} else if (selected) {
selectionMenu.popup(this.windowMain.win);
selectionMenu.popup({ window: this.windowMain.win });
}
});
}