@innovastudio/contentbuilder 1.5.140 → 1.5.142

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/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.5.140",
4
+ "version": "1.5.142",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -81149,7 +81149,7 @@ class LivePreview {
81149
81149
  if (this.builder.livePreviewAlwaysReload || hardReload) {
81150
81150
  iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
81151
81151
  } else {
81152
- let iframeDocument = iframe.contentDocument || iframe.contentWindow.document;
81152
+ let iframeDocument = iframe.contentDocument || iframe.contentWindow && iframe.contentWindow.document;
81153
81153
  if (iframeDocument) {
81154
81154
  if (!iframeDocument.body) {
81155
81155
  iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
@@ -81201,7 +81201,7 @@ class LivePreview {
81201
81201
  if (this.builder.livePreviewAlwaysReload || hardReload) {
81202
81202
  iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
81203
81203
  } else {
81204
- let iframeDocument = iframe.contentDocument || iframe.contentWindow.document;
81204
+ let iframeDocument = iframe.contentDocument || iframe.contentWindow && iframe.contentWindow.document;
81205
81205
  if (iframeDocument) {
81206
81206
  if (!iframeDocument.body) {
81207
81207
  iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);