Skip to content

Commit

Permalink
Skip hopefully unnecessary content type override
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Sep 17, 2023
1 parent 6bd5128 commit 3770571
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions _static/version_redirect.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
var collator = new Intl.Collator(undefined, {numeric: true, sensitivity: 'base'});

// Override MIME type to avoid "invalid XML" warnings when using $.getJSON()
$.ajaxSetup({beforeSend: function (xhr) {
if (xhr.overrideMimeType) {
xhr.overrideMimeType("application/json");
}
}});

const VERSIONS_LIST = "/versions.json";

const getVersions = $.getJSON(VERSIONS_LIST).then(function (data) {
Expand Down

0 comments on commit 3770571

Please sign in to comment.