1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/src/components/filedownloader.js

15 lines
322 B
JavaScript
Raw Normal View History

import multiDownload from "multi-download";
2020-03-19 21:20:47 -04:00
export function download(items) {
2020-03-19 21:20:47 -04:00
if (window.NativeShell) {
items.map(function (item) {
window.NativeShell.downloadFile(item);
2020-03-19 21:20:47 -04:00
});
} else {
multiDownload(items.map(function (item) {
return item.url;
}));
}
}