1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-07-05 12:04:45 +02:00

open popup when noop item clicked

This commit is contained in:
Kyle Spearrin 2017-10-19 09:58:31 -04:00
parent 37907fbf42
commit e64714c8d5

View File

@ -198,15 +198,14 @@ var bg_isBackground = true,
bg_passwordGenerationService.addHistory(password); bg_passwordGenerationService.addHistory(password);
}); });
} }
else if (info.menuItemId === 'autofill_noop') {
if (bg_utilsService.isFirefox() && chrome.browserAction.openPopup) {
chrome.browserAction.openPopup();
}
}
else if (info.parentMenuItemId === 'autofill' || info.parentMenuItemId === 'copy-username' || else if (info.parentMenuItemId === 'autofill' || info.parentMenuItemId === 'copy-username' ||
info.parentMenuItemId === 'copy-password') { info.parentMenuItemId === 'copy-password') {
var id = info.menuItemId.split('_')[1]; var id = info.menuItemId.split('_')[1];
if (id === 'noop') { if (id === 'noop') {
if (chrome.browserAction.openPopup) {
chrome.browserAction.openPopup();
}
return; return;
} }