mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
Change from deprecated $.parseJSON to JSON.parse.
The jQuery function `parseJSON` is now deprecated so we should push to switch to native `JSON.parse` since all browsers support it.
This commit is contained in:
committed by
Tim Abbott
parent
10265dbbd9
commit
ac4ac63353
@@ -341,7 +341,7 @@
|
||||
|
||||
if (xhr.responseText) {
|
||||
try {
|
||||
serverResponse = jQuery.parseJSON(xhr.responseText);
|
||||
serverResponse = JSON.parse(xhr.responseText);
|
||||
}
|
||||
catch (e) {
|
||||
serverResponse = xhr.responseText;
|
||||
|
||||
Reference in New Issue
Block a user