1
0
Fork 0
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:
Bill Thornton 2020-12-12 00:57:26 -05:00
parent 14dc03ab7d
commit 310e8b713f
4 changed files with 7 additions and 11 deletions

View file

@ -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;