@innovastudio/contentbuilder 1.5.141 → 1.5.143
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
@@ -78581,13 +78581,19 @@ class Lightbox {
|
|
78581
78581
|
autoplayVideos: true,
|
78582
78582
|
skin: 'light'
|
78583
78583
|
};
|
78584
|
-
|
78585
|
-
|
78584
|
+
|
78585
|
+
/*
|
78586
|
+
if(builder.isContentBox) {
|
78587
|
+
this.util.refreshLightbox(this.lightboxOptions);
|
78586
78588
|
} else {
|
78587
|
-
|
78588
|
-
|
78589
|
-
|
78589
|
+
const glightbox = new GlightboxInit(this.lightboxOptions); // css applied from contentbuilder.css
|
78590
|
+
glightbox.init();
|
78591
|
+
this.builder.glightbox = glightbox;
|
78590
78592
|
}
|
78593
|
+
*/
|
78594
|
+
const glightbox = new GlightboxInit(this.lightboxOptions); // css applied from contentbuilder.css
|
78595
|
+
glightbox.init();
|
78596
|
+
this.builder.glightbox = glightbox;
|
78591
78597
|
}
|
78592
78598
|
openImage(url) {
|
78593
78599
|
this.openLightbox(url, this.lightboxOptions);
|
@@ -81149,7 +81155,7 @@ class LivePreview {
|
|
81149
81155
|
if (this.builder.livePreviewAlwaysReload || hardReload) {
|
81150
81156
|
iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
|
81151
81157
|
} else {
|
81152
|
-
let iframeDocument = iframe.contentDocument || iframe.contentWindow.document;
|
81158
|
+
let iframeDocument = iframe.contentDocument || iframe.contentWindow && iframe.contentWindow.document;
|
81153
81159
|
if (iframeDocument) {
|
81154
81160
|
if (!iframeDocument.body) {
|
81155
81161
|
iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
|