@gudhub/ssg-web-components-library 1.0.44 → 1.0.45

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gudhub/ssg-web-components-library",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -178,13 +178,13 @@ class MasonryGallery extends GHComponent {
178
178
 
179
179
  const promise = new Promise((res, rej) => {
180
180
  const img = document.createElement('img');
181
- img.setAttribute('src', imageSrc);
181
+ img.setAttribute('src', typeof(+imageSrc) === 'number' ? `https://gudhub.com/userdata/35113/${imageSrc}.jpg` : imageSrc);
182
182
  img.setAttribute('alt', imageAlt);
183
183
  img.setAttribute('title', imageTitle);
184
184
 
185
185
  if (fullImageSrc) {
186
186
  img.classList.add('open-modal');
187
- img.setAttribute('data-modal-image', fullImageSrc);
187
+ img.setAttribute('data-modal-image', typeof(+imageSrc) === 'number' ? `https://gudhub.com/userdata/35113/${fullImageSrc}.jpg` : fullImageSrc);
188
188
  }
189
189
 
190
190
  img.setAttribute('data-image-loading', 'true');