Skip to content

Commit

Permalink
Fix for Illegal Constructor error
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardMoyse committed Sep 15, 2024
1 parent a47150a commit af31c59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/phoenix-event-display/src/helpers/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export const loadFile = (
onFileRead?.(e.target.result.toString());
}
inputFile.remove();
inputFile = new HTMLInputElement();
inputFile = document.createElement('input');
// For explanation, see https://stackoverflow.com/a/26221525
};
reader.readAsText(configFile);
};
Expand Down

0 comments on commit af31c59

Please sign in to comment.