diff --git a/src/components/imageDownloader/imageDownloader.js b/src/components/imageDownloader/imageDownloader.js index e501a808c9..2a288cad9f 100644 --- a/src/components/imageDownloader/imageDownloader.js +++ b/src/components/imageDownloader/imageDownloader.js @@ -79,7 +79,7 @@ import template from './imageDownloader.template.html'; let html = ''; for (let i = 0, length = imagesResult.Images.length; i < length; i++) { - html += getRemoteImageHtml(imagesResult.Images[i], imageType, apiClient); + html += getRemoteImageHtml(imagesResult.Images[i], imageType); } const availableImagesList = page.querySelector('.availableImagesList'); @@ -150,11 +150,7 @@ import template from './imageDownloader.template.html'; }); } - function getDisplayUrl(url, apiClient) { - return apiClient.getUrl('Images/Remote', { imageUrl: url }); - } - - function getRemoteImageHtml(image, imageType, apiClient) { + function getRemoteImageHtml(image, imageType) { const tagName = layoutManager.tv ? 'button' : 'div'; const enableFooterButtons = !layoutManager.tv; @@ -209,9 +205,9 @@ import template from './imageDownloader.template.html'; html += '