Skip to content

Commit

Permalink
change background stage (#132)
Browse files Browse the repository at this point in the history
Co-authored-by: Suhani Jain <suhjain@suhanis-mbp.corp.adobe.com>
  • Loading branch information
suhjainadobe and Suhani Jain authored Dec 8, 2023
1 parent 77bdf81 commit 645498e
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 645498e

Please sign in to comment.