1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-08-07 20:03:16 +02:00

Do not set datatype on API calls where there is no response. causes jqeury to error. (revert fb94764)

This commit is contained in:
Kyle Spearrin 2016-12-26 21:39:54 -05:00
parent 836e1e563f
commit 6af283b947

View File

@ -70,7 +70,6 @@ function initApiService() {
url: self.baseUrl + '/accounts/password-hint', url: self.baseUrl + '/accounts/password-hint',
data: JSON.stringify(request), data: JSON.stringify(request),
contentType: 'application/json; charset=utf-8', contentType: 'application/json; charset=utf-8',
dataType: 'json',
success: function (response) { success: function (response) {
success(); success();
}, },
@ -87,7 +86,6 @@ function initApiService() {
url: self.baseUrl + '/accounts/register', url: self.baseUrl + '/accounts/register',
data: JSON.stringify(request), data: JSON.stringify(request),
contentType: 'application/json; charset=utf-8', contentType: 'application/json; charset=utf-8',
dataType: 'json',
success: function (response) { success: function (response) {
success(); success();
}, },
@ -258,7 +256,6 @@ function initApiService() {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',
url: self.baseUrl + '/ciphers/' + id + '/delete?access_token=' + token, url: self.baseUrl + '/ciphers/' + id + '/delete?access_token=' + token,
dataType: 'json',
success: function (response) { success: function (response) {
success(); success();
}, },