mirror of
https://github.com/Myxelium/RandomMemerBot.git
synced 2026-04-09 08:59:39 +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;
|
||||
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.');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user