@innovastudio/contentbox 1.5.35 → 1.5.36

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
3
  "type": "module",
4
- "version": "1.5.35",
4
+ "version": "1.5.36",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "files": [
@@ -107426,6 +107426,7 @@ class ContentBox {
107426
107426
  }); // Live Preview
107427
107427
 
107428
107428
  const modalPagePreview = this.builderStuff.querySelector('.is-modal.content-preview');
107429
+ this.modalPagePreview = modalPagePreview;
107429
107430
  const iframe = modalPagePreview.querySelector('iframe');
107430
107431
  this.win.addEventListener('scroll', this.doScrollSync = () => {
107431
107432
  this.scrollSync(iframe);
@@ -107436,8 +107437,7 @@ class ContentBox {
107436
107437
 
107437
107438
 
107438
107439
  scrollSync(iframe) {
107439
- const modalPagePreview = this.builderStuff.querySelector('.is-modal.content-preview');
107440
- if (!modalPagePreview.classList.contains('active')) return;
107440
+ if (!this.modalPagePreview.classList.contains('active')) return;
107441
107441
  if (this.cancelScrollSync) return;
107442
107442
 
107443
107443
  try {