mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
still add no matching sites menu option when no site
This commit is contained in:
@@ -346,7 +346,7 @@ function loadNoSitesContextMenuOptions() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function loadContextMenuOptions(title, idSuffix, site) {
|
function loadContextMenuOptions(title, idSuffix, site) {
|
||||||
if (site.password && site.password !== '') {
|
if (!site || (site.password && site.password !== '')) {
|
||||||
chrome.contextMenus.create({
|
chrome.contextMenus.create({
|
||||||
type: 'normal',
|
type: 'normal',
|
||||||
id: 'autofill_' + idSuffix,
|
id: 'autofill_' + idSuffix,
|
||||||
@@ -356,7 +356,7 @@ function loadContextMenuOptions(title, idSuffix, site) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (site.username && site.username !== '') {
|
if (!site || (site.username && site.username !== '')) {
|
||||||
chrome.contextMenus.create({
|
chrome.contextMenus.create({
|
||||||
type: 'normal',
|
type: 'normal',
|
||||||
id: 'copy-username_' + idSuffix,
|
id: 'copy-username_' + idSuffix,
|
||||||
@@ -366,7 +366,7 @@ function loadContextMenuOptions(title, idSuffix, site) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (site.password && site.password !== '') {
|
if (!site || (site.password && site.password !== '')) {
|
||||||
chrome.contextMenus.create({
|
chrome.contextMenus.create({
|
||||||
type: 'normal',
|
type: 'normal',
|
||||||
id: 'copy-password_' + idSuffix,
|
id: 'copy-password_' + idSuffix,
|
||||||
|
|||||||
Reference in New Issue
Block a user