From 0e2af5ccd01906ad88102364fdac01dbc9a03663 Mon Sep 17 00:00:00 2001 From: Dmitry Pokidov Date: Wed, 5 Jul 2023 13:10:47 +1000 Subject: [PATCH] Removed newlines in srcset, so it looks ok when HTML is minified --- src/components/HiDpiPicture.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HiDpiPicture.js b/src/components/HiDpiPicture.js index 54f969f..2d4b193 100644 --- a/src/components/HiDpiPicture.js +++ b/src/components/HiDpiPicture.js @@ -11,7 +11,7 @@ function srcSetAttr(bp, widths, dppx, config, src) { const imageWidth = w * dppx; const op = `${bp.op.replace('{WIDTH}', imageWidth).replace('{HEIGHT}', imageHeight)}`; - return `${srcSet}${srcSet.length !== 0 ? ',' : ''}\n${scheme}${config.domain}/api/2/img/${prepareSource(src)}/${op}${query} ${imageWidth}w`; + return `${srcSet}${srcSet.length !== 0 ? ',' : ''}${scheme}${config.domain}/api/2/img/${prepareSource(src)}/${op}${query} ${imageWidth}w`; }, ''); }