Skip to content

Commit

Permalink
Fixed not recognising uppercase WAV extension as a wave file
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattk70 committed Mar 29, 2024
1 parent 54e568a commit 742b7ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,7 @@ async function doPrediction({
start = 0,
end = metadata[file].duration,
}) {
if (file.endsWith('.wav')){
if (file.toLowerCase().endsWith('.wav')){
await getWavePredictBuffers({ file: file, start: start, end: end }).catch( (error) => console.warn(error));
} else {
await getPredictBuffers({ file: file, start: start, end: end }).catch( (error) => console.warn(error));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chirpity",
"version": "1.6.5",
"version": "1.6.6",
"description": "Chirpity Nocmig",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 742b7ec

Please sign in to comment.