diff --git a/js/worker.js b/js/worker.js index 8916112c..74e4695b 100644 --- a/js/worker.js +++ b/js/worker.js @@ -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)); diff --git a/package.json b/package.json index 0c4c1742..82f1da90 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chirpity", - "version": "1.6.5", + "version": "1.6.6", "description": "Chirpity Nocmig", "main": "main.js", "scripts": {