From d8633b968830fd20d73612e9f0d0559b0bcb304c Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 18 Sep 2023 17:45:35 +0300 Subject: [PATCH] Preserve the protocol for fanart images --- frontend/src/Series/Details/SeriesDetails.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/src/Series/Details/SeriesDetails.js b/frontend/src/Series/Details/SeriesDetails.js index 0686d9edd..6f05d593b 100644 --- a/frontend/src/Series/Details/SeriesDetails.js +++ b/frontend/src/Series/Details/SeriesDetails.js @@ -45,11 +45,7 @@ const defaultFontSize = parseInt(fonts.defaultFontSize); const lineHeight = parseFloat(fonts.lineHeight); function getFanartUrl(images) { - const fanartImage = _.find(images, { coverType: 'fanart' }); - if (fanartImage) { - // Remove protocol - return fanartImage.url.replace(/^https?:/, ''); - } + return _.find(images, { coverType: 'fanart' })?.url; } function getExpandedState(newState) {