Skip to content

Commit

Permalink
changing path for images (#138)
Browse files Browse the repository at this point in the history
Co-authored-by: Suhani Jain <suhjain@Suhanis-MacBook-Pro.local>
  • Loading branch information
suhjainadobe and Suhani Jain authored Dec 7, 2023
1 parent c7ebc3b commit f351dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion creativecloud/features/changeBg/changeBg.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function getImageSrc(viewport, pic) {
let imageSrc = '';
if (viewport === 'mobile') imageSrc = pic.querySelector('source[type="image/webp"]:not([media])');
else imageSrc = pic.querySelector('source[type="image/webp"][media]');
return imageSrc.srcset.replace('./', '/');
return imageSrc.srcset;
}

function createLayer(viewport, property, layerConfig) {
Expand Down

0 comments on commit f351dff

Please sign in to comment.