Skip to content

Commit

Permalink
Import only .json
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr committed Sep 23, 2024
1 parent 26c50fc commit 9f779fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const importKeymap = () => {
// TODO: find npm FileReader.readAsText lib like file-saver
const i = document.createElement("input");
i.type = "file";
i.accept = ".json";
// eslint-disable-next-line func-names
i.onchange = function (event: Event) {
const files = (event.target as HTMLInputElement).files;
Expand Down

0 comments on commit 9f779fe

Please sign in to comment.