mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
Do not set datatype on API calls where there is no response. causes jqeury to error. (revert fb94764)
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user