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:
committed by
Bill Thornton
parent
9bef06f466
commit
e834ae3f41
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user