mirror of
https://github.com/Myxelium/RandomMemerBot.git
synced 2026-04-11 09:39:40 +00:00
Clips can be equal to 10 seconds long
This commit is contained in:
@@ -33,7 +33,7 @@ document.getElementById('uploadForm').addEventListener('submit', function (event
|
|||||||
var duration = audio.duration;
|
var duration = audio.duration;
|
||||||
console.log(duration);
|
console.log(duration);
|
||||||
|
|
||||||
if (duration > 10) {
|
if (duration >= 10) {
|
||||||
alert('File is longer than 10 seconds.');
|
alert('File is longer than 10 seconds.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user