@innovastudio/contentbuilder 1.5.139 → 1.5.141
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/index.d.ts
CHANGED
@@ -285,7 +285,7 @@ interface ContentBuilderOptions {
|
|
285
285
|
declare class ContentBuilder {
|
286
286
|
constructor(options?: ContentBuilderOptions);
|
287
287
|
|
288
|
-
html(element?: HTMLElement):
|
288
|
+
html(element?: HTMLElement): string;
|
289
289
|
// loadSnippets(snippetFile: string, snippetOpen?: boolean): void;
|
290
290
|
|
291
291
|
loadSnippets(path: string, snippetOpen?: boolean): Promise<void>;
|
package/package.json
CHANGED
@@ -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);
|