@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
@@ -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);
|