diff --git a/src/services/cryptoService.js b/src/services/cryptoService.js index 6a71753a9c..4d6ed8dad6 100644 --- a/src/services/cryptoService.js +++ b/src/services/cryptoService.js @@ -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; } diff --git a/src/services/syncService.js b/src/services/syncService.js index a3566652de..d7fb5e369e 100644 --- a/src/services/syncService.js +++ b/src/services/syncService.js @@ -118,7 +118,7 @@ function initSyncService() { self.cryptoService.getPrivateKey().then(function (privateKey) { setKeys(!!privateKey, response, deferred); }, function () { - setKeys(false, response, deferred); + setKeys(true, response, deferred); }); }, function () { deferred.reject();