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:
parent
37907fbf42
commit
e64714c8d5
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user