1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 23:03:32 +00:00

sync domains

This commit is contained in:
Kyle Spearrin
2017-01-14 11:20:44 -05:00
parent 568d7d3ad9
commit c18cdd6206
6 changed files with 212 additions and 34 deletions

View File

@@ -97,6 +97,25 @@ function initApiService() {
});
};
// Settings APIs
ApiService.prototype.getIncludedDomains = function (success, error) {
var self = this;
this.tokenService.getToken(function (token) {
$.ajax({
type: 'GET',
url: self.baseUrl + '/settings/domains?excluded=false&access_token=' + token,
dataType: 'json',
success: function (response) {
success(new DomainsResponse(response));
},
error: function (jqXHR, textStatus, errorThrown) {
handleError(error, jqXHR, textStatus, errorThrown);
}
});
});
};
// Login APIs
ApiService.prototype.getLogin = function (id, success, error) {