mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
15 lines
322 B
JavaScript
15 lines
322 B
JavaScript
import multiDownload from 'multi-download';
|
|
|
|
export function download(items) {
|
|
|
|
if (window.NativeShell) {
|
|
items.map(function (item) {
|
|
window.NativeShell.downloadFile(item);
|
|
});
|
|
} else {
|
|
multiDownload(items.map(function (item) {
|
|
return item.url;
|
|
}));
|
|
}
|
|
}
|