mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Checking for equivalent domains from settings
This commit is contained in:
@@ -32,7 +32,13 @@ function initSettingsService() {
|
||||
};
|
||||
|
||||
SettingsService.prototype.getEquivalentDomains = function (callback) {
|
||||
getSettingsKey(this, 'equivalentDomains', callback);
|
||||
var deferred = Q.defer();
|
||||
|
||||
getSettingsKey(this, 'equivalentDomains', function (domains) {
|
||||
deferred.resolve(domains);
|
||||
});
|
||||
|
||||
return deferred.promise;
|
||||
};
|
||||
|
||||
function getSettingsKey(self, key, callback) {
|
||||
|
||||
Reference in New Issue
Block a user