7adc288ca6
- Move NativeShell calls into shell.js where possible to better group them - Add "updateVolumeLevel" API (not used yet)
11 lines
245 B
JavaScript
11 lines
245 B
JavaScript
import multiDownload from 'multi-download';
|
|
import shell from 'shell';
|
|
|
|
export function download(items) {
|
|
if (!shell.downloadFiles(items)) {
|
|
multiDownload(items.map(function (item) {
|
|
return item.url;
|
|
}));
|
|
}
|
|
}
|