1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-13 10:24:20 +01:00

Q shorthand

This commit is contained in:
Kyle Spearrin 2017-10-17 12:23:32 -04:00
parent 999689cf7e
commit 09c340bbe5

View File

@ -173,14 +173,13 @@ function initCryptoService(constantsService) {
};
CryptoService.prototype.getOrgKeys = function () {
var deferred = Q.defer();
if (_orgKeys && _orgKeys.length) {
deferred.resolve(_orgKeys);
return deferred.promise;
return Q(_orgKeys);
}
var self = this;
var self = this,
deferred = Q.defer();
chrome.storage.local.get(encOrgKeysKey, function (obj) {
if (obj && obj.encOrgKeys) {
var orgKeys = {},