mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Enable eslint array-callback-return foreach checking
This commit is contained in:
parent
aabbc8920f
commit
858aea92f9
5 changed files with 18 additions and 7 deletions
|
@ -56,7 +56,8 @@ export default function (urls) {
|
|||
urls.forEach(function (url) {
|
||||
// the download init has to be sequential for firefox if the urls are not on the same domain
|
||||
if (browser.firefox && !sameDomain(url)) {
|
||||
return setTimeout(download.bind(null, url), 100 * ++delay);
|
||||
setTimeout(download.bind(null, url), 100 * ++delay);
|
||||
return;
|
||||
}
|
||||
|
||||
download(url);
|
||||
|
|
|
@ -43,7 +43,9 @@ export default {
|
|||
*/
|
||||
downloadFiles(items) {
|
||||
if (window.NativeShell?.downloadFile) {
|
||||
items.forEach(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