mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
18 lines
No EOL
460 B
JavaScript
18 lines
No EOL
460 B
JavaScript
define(['multi-download'], function (multiDownload) {
|
|
'use strict';
|
|
|
|
return {
|
|
download: function (items) {
|
|
|
|
if (window.NativeShell) {
|
|
items.map(function (item) {
|
|
window.NativeShell.downloadFile(item.url);
|
|
});
|
|
} else {
|
|
multiDownload(items.map(function (item) {
|
|
return item.url;
|
|
}));
|
|
}
|
|
}
|
|
};
|
|
}); |