mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 23:03:32 +00:00
only get keys if private key returns null
This commit is contained in:
@@ -133,7 +133,7 @@ function initCryptoService(constantsService) {
|
||||
var self = this;
|
||||
chrome.storage.local.get('encPrivateKey', function (obj) {
|
||||
if (!obj || !obj.encPrivateKey) {
|
||||
deferred.reject('Cannot get enc private key.');
|
||||
deferred.resolve(null);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user