mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 00:46:03 +00:00
web: Switch from JSON.parse(xhr.responseText) to xhr.responseJSON.
This commit is contained in:
committed by
Tim Abbott
parent
d05a1e9efa
commit
7efe989a72
@@ -595,7 +595,7 @@ export function initialize() {
|
||||
}
|
||||
|
||||
function xhr_failure(xhr) {
|
||||
const error = JSON.parse(xhr.responseText);
|
||||
const error = xhr.responseJSON;
|
||||
failure(error.msg);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user