@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): void;
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.5.139",
4
+ "version": "1.5.141",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -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);