Skip to content

Commit f30131e

Browse files
specify reader to readAsDataURL() when file type is audio/wav
1 parent 558aa8f commit f30131e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

js/activity.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6609,6 +6609,12 @@ class Activity {
66096609
abcReader.readAsText(files[0]);
66106610
return;
66116611
}
6612+
6613+
if (files[0].type === "audio/wav") {
6614+
reader.readAsDataURL(files[0]);
6615+
return;
6616+
}
6617+
66126618
reader.readAsText(files[0]);
66136619
reader.readAsText(files[0]);
66146620
window.scroll(0, 0);

0 commit comments

Comments
 (0)