@innovastudio/contentbox 1.6.145 → 1.6.146

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.6.145",
4
+ "version": "1.6.146",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "types": "index.d.ts",
@@ -59,7 +59,7 @@
59
59
  "ws": "^8.13.0"
60
60
  },
61
61
  "dependencies": {
62
- "@innovastudio/contentbuilder": "^1.5.139",
62
+ "@innovastudio/contentbuilder": "^1.5.142",
63
63
  "js-beautify": "^1.14.0",
64
64
  "sortablejs": "^1.15.2"
65
65
  }
@@ -107668,7 +107668,7 @@ class LivePreview {
107668
107668
  if (this.builder.livePreviewAlwaysReload || hardReload) {
107669
107669
  iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
107670
107670
  } else {
107671
- let iframeDocument = iframe.contentDocument || iframe.contentWindow.document;
107671
+ let iframeDocument = iframe.contentDocument || iframe.contentWindow && iframe.contentWindow.document;
107672
107672
  if (iframeDocument) {
107673
107673
  if (!iframeDocument.body) {
107674
107674
  iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
@@ -107720,7 +107720,7 @@ class LivePreview {
107720
107720
  if (this.builder.livePreviewAlwaysReload || hardReload) {
107721
107721
  iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
107722
107722
  } else {
107723
- let iframeDocument = iframe.contentDocument || iframe.contentWindow.document;
107723
+ let iframeDocument = iframe.contentDocument || iframe.contentWindow && iframe.contentWindow.document;
107724
107724
  if (iframeDocument) {
107725
107725
  if (!iframeDocument.body) {
107726
107726
  iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);