mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-18 10:55:48 +01:00
Q shorthand
This commit is contained in:
parent
999689cf7e
commit
09c340bbe5
@ -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 = {},
|
||||
|
Loading…
Reference in New Issue
Block a user