mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Improve NativeShell integration
- Move NativeShell calls into shell.js where possible to better group them - Add "updateVolumeLevel" API (not used yet)
This commit is contained in:
parent
bef58052fa
commit
7adc288ca6
3 changed files with 35 additions and 15 deletions
|
@ -1,11 +1,8 @@
|
|||
import multiDownload from 'multi-download';
|
||||
import shell from 'shell';
|
||||
|
||||
export function download(items) {
|
||||
if (window.NativeShell) {
|
||||
items.map(function (item) {
|
||||
window.NativeShell.downloadFile(item);
|
||||
});
|
||||
} else {
|
||||
if (!shell.downloadFiles(items)) {
|
||||
multiDownload(items.map(function (item) {
|
||||
return item.url;
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue