1
0
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:
Kyle Spearrin
2017-05-22 09:28:11 -04:00
parent 81101f2890
commit 038e95dbdf
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}