mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-23 08:00:09 +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:
parent
836e1e563f
commit
6af283b947
@ -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();
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user