diff --git a/src/webui/www/private/download.html b/src/webui/www/private/download.html index 1699dbf50..918a264db 100644 --- a/src/webui/www/private/download.html +++ b/src/webui/www/private/download.html @@ -142,9 +142,8 @@ const encodedUrls = new URI().getData('urls'); if (encodedUrls) { - const urls = []; - encodedUrls.split('|').each(function(url) { - urls.push(decodeURIComponent(url)); + const urls = encodedUrls.split('|').map(function(url) { + return decodeURIComponent(url); }); if (urls.length)