Clips can be equal to 10 seconds long

This commit is contained in:
2023-10-24 01:08:25 +02:00
committed by GitHub
parent 92f874fe1d
commit b51d1c698d

View File

@@ -33,7 +33,7 @@ document.getElementById('uploadForm').addEventListener('submit', function (event
var duration = audio.duration;
console.log(duration);
if (duration > 10) {
if (duration >= 10) {
alert('File is longer than 10 seconds.');
return;
}
@@ -97,4 +97,4 @@ document.getElementById('uploadForm').addEventListener('submit', function (event
} else {
alert('Please select a file or paste a YouTube link.');
}
});
});