Skip to content

Commit

Permalink
might as well set this in thr component
Browse files Browse the repository at this point in the history
  • Loading branch information
knzai committed Aug 10, 2024
1 parent 8b819a9 commit c275462
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/webc/file-byte-reader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class FileByteReader extends HTMLInputElement {
connectedCallback() {
this.type = "file";
this.addEventListener('change', this.onChange);
}

Expand Down
2 changes: 1 addition & 1 deletion src/webc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</head>
<body>
<h1>Process your CGA/EGAs</h1>
<input is="file-byte-reader" id="file-input" multiple="true" type="file" accept=".bin,.cga,.ega,.cega" />
<input is="file-byte-reader" id="file-input" multiple="true" accept=".bin,.cga,.ega,.cega" />
<preview-wrapper></preview-wrapper>
</body>
</html>

0 comments on commit c275462

Please sign in to comment.