1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-07-12 13:15:33 +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',
data: JSON.stringify(request),
contentType: 'application/json; charset=utf-8',
dataType: 'json',
success: function (response) {
success();
},
@ -87,7 +86,6 @@ function initApiService() {
url: self.baseUrl + '/accounts/register',
data: JSON.stringify(request),
contentType: 'application/json; charset=utf-8',
dataType: 'json',
success: function (response) {
success();
},
@ -258,7 +256,6 @@ function initApiService() {
$.ajax({
type: 'POST',
url: self.baseUrl + '/ciphers/' + id + '/delete?access_token=' + token,
dataType: 'json',
success: function (response) {
success();
},