1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01: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);
});
}
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' ||
info.parentMenuItemId === 'copy-password') {
var id = info.menuItemId.split('_')[1];
if (id === 'noop') {
if (chrome.browserAction.openPopup) {
chrome.browserAction.openPopup();
}
return;
}