chore: newest download first

This commit is contained in:
Adrian Castro
2024-03-20 17:49:50 +01:00
parent 5a8e250bf5
commit f1fc6a9063

View File

@@ -50,7 +50,7 @@ export const DownloadManagerProvider: React.FC<{ children: ReactNode }> = ({
isFinished: false, isFinished: false,
}; };
setDownloads((currentDownloads) => [...currentDownloads, newDownload]); setDownloads((currentDownloads) => [newDownload, ...currentDownloads]);
if (type === "mp4") { if (type === "mp4") {
await downloadMP4(url); await downloadMP4(url);