Skip to content

Commit

Permalink
This should break lots of stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Brody committed Aug 16, 2024
1 parent 958c3a4 commit e74e190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/src/load_json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function loadJSON(filePath: string) {
// Load text with Ajax synchronously: takes path to file and optional MIME type
function loadTextFileAjaxSync(filePath: string, mimeType: string) {
const xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", filePath, false);
xmlhttp.open("POST", filePath, false);
if (mimeType != null) {
if (xmlhttp.overrideMimeType) {
xmlhttp.overrideMimeType(mimeType);
Expand Down

0 comments on commit e74e190

Please sign in to comment.