@divriots/jampack 0.34.1 → 0.34.2

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.
@@ -13,7 +13,7 @@ export async function processIframe(state, htmlfile, iframe, isAboveTheFold, app
13
13
  else if (lazyloadOptions.how === 'js') {
14
14
  const src = iframe.attr('src');
15
15
  if (src) {
16
- iframe.attr('class', 'jampack-lozad');
16
+ iframe.addClass('jampack-lozad');
17
17
  iframe.attr('data-src', src);
18
18
  iframe.removeAttr('src');
19
19
  await install_lozad(state, htmlfile, appendToBody);
@@ -17,7 +17,7 @@ export async function processVideo(state, htmlfile, video, isAboveTheFold, appen
17
17
  if (lazyloadOptions.when === 'always' ||
18
18
  (lazyloadOptions.when === 'below-the-fold' && !isAboveTheFold)) {
19
19
  if (lazyloadOptions.how === 'js') {
20
- video.attr('class', 'jampack-lozad');
20
+ video.addClass('jampack-lozad');
21
21
  const src = video.attr('src');
22
22
  if (src) {
23
23
  video.attr('data-src', src);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@divriots/jampack",
3
- "version": "0.34.1",
3
+ "version": "0.34.2",
4
4
  "cache-version": {
5
5
  "img": "v1",
6
6
  "img-ext": "v1"