mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix invalid uses of Array.map
This commit is contained in:
parent
14dc03ab7d
commit
310e8b713f
4 changed files with 7 additions and 11 deletions
|
@ -33,9 +33,7 @@ export default {
|
|||
*/
|
||||
downloadFiles(items) {
|
||||
if (window.NativeShell) {
|
||||
items.map(function(item) {
|
||||
window.NativeShell.downloadFile(item);
|
||||
});
|
||||
items.forEach(item => window.NativeShell.downloadFile(item));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue