Skip to content

Commit

Permalink
Removed newlines in srcset, so it looks ok when HTML is minified
Browse files Browse the repository at this point in the history
  • Loading branch information
dooman87 committed Jul 5, 2023
1 parent bf89466 commit 0e2af5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/HiDpiPicture.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
}, '');
}

Expand Down

0 comments on commit 0e2af5c

Please sign in to comment.