Skip to content

Commit b9c73ae

Browse files
authored
correct inputs (#4316)
* correct inputs * initialize first
1 parent 4b3bde3 commit b9c73ae

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,13 @@
440440
accept=".json"
441441
tabindex="-1"
442442
/>
443+
<input
444+
class="file"
445+
type="file"
446+
id="audio"
447+
accept=".mp3, .wav"
448+
tabindex="-1"
449+
/>
443450
<input
444451
class="file"
445452
type="file"

js/block.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2085,8 +2085,8 @@ class Block {
20852085
* @param {number} thisBlock - Index of the current block.
20862086
*/
20872087
_doOpenMedia(thisBlock) {
2088-
const fileChooser = docById("myOpenAll");
20892088
const that = this;
2089+
const fileChooser = that.name=="media" ? docById("myMedia") : docById("audio");
20902090

20912091
const __readerAction = () => {
20922092
window.scroll(0, 0);

0 commit comments

Comments
 (0)