mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Use downloadFiles from NatvieShell
Try to pass batched downloads to natvie shell as list The new downloadFiles function is TBD in shell implementations.
This commit is contained in:
parent
9bef06f466
commit
e834ae3f41
1 changed files with 4 additions and 0 deletions
|
@ -42,6 +42,10 @@ export default {
|
|||
* @returns true on success
|
||||
*/
|
||||
downloadFiles(items) {
|
||||
if (window.NativeShell?.downloadFiles) {
|
||||
window.NativeShell.downloadFiles(items);
|
||||
return true;
|
||||
}
|
||||
if (window.NativeShell?.downloadFile) {
|
||||
items.forEach(item => {
|
||||
window.NativeShell.downloadFile(item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue