web: Switch from JSON.parse(xhr.responseText) to xhr.responseJSON.

This commit is contained in:
Alex Vandiver
2023-07-18 18:14:56 +00:00
committed by Tim Abbott
parent d05a1e9efa
commit 7efe989a72
17 changed files with 34 additions and 36 deletions

View File

@@ -595,7 +595,7 @@ export function initialize() {
}
function xhr_failure(xhr) {
const error = JSON.parse(xhr.responseText);
const error = xhr.responseJSON;
failure(error.msg);
}