1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-06 05:28:51 +02:00

firefox: show popup when click "vault is locked" (#314)

* small lint error

* show popup when click "vault is locked"

* moved to loadNoLoginsContextMenuOptions
This commit is contained in:
Duc Hoang Nguyen 2017-10-19 19:38:33 +07:00 committed by Kyle Spearrin
parent 77c3daed0e
commit 37907fbf42
2 changed files with 6 additions and 1 deletions

View File

@ -198,6 +198,11 @@ 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];

View File

@ -31,7 +31,7 @@ function initCryptoService(constantsService) {
}
return self.utilsService.saveObjToStorage(keyKey, key.keyB64);
})
});
};
CryptoService.prototype.setKeyHash = function (keyHash, callback) {