mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added nativeshell API to filedownloader module
This commit is contained in:
parent
856d87a9b2
commit
071963ec5a
1 changed files with 9 additions and 3 deletions
|
@ -4,9 +4,15 @@ define(['multi-download'], function (multiDownload) {
|
||||||
return {
|
return {
|
||||||
download: function (items) {
|
download: function (items) {
|
||||||
|
|
||||||
multiDownload(items.map(function (item) {
|
if (window.NativeShell) {
|
||||||
return item.url;
|
items.map(function (item) {
|
||||||
}));
|
window.NativeShell.downloadFile(item.url);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
multiDownload(items.map(function (item) {
|
||||||
|
return item.url;
|
||||||
|
}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
Loading…
Add table
Add a link
Reference in a new issue