@gudhub/ssg-web-components-library 1.0.121 → 1.0.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -183,7 +183,11 @@ class ImageComponent extends GHComponent {
|
|
|
183
183
|
const fallbackSrc = this.getAttribute('src');
|
|
184
184
|
const dataMaxWidth = parseInt(this.getAttribute('data-max-width'), 10);
|
|
185
185
|
|
|
186
|
-
const
|
|
186
|
+
const rawSrc = this.normalizedSrc
|
|
187
|
+
|| imageFromPicture.getAttribute('data-src')
|
|
188
|
+
|| this.getAttribute('src');
|
|
189
|
+
|
|
190
|
+
const src = this.normalizeUrlPath(rawSrc);
|
|
187
191
|
if (!src) {
|
|
188
192
|
console.warn('No valid image source found.');
|
|
189
193
|
return;
|