@innovastudio/contentbuilder 1.4.27 → 1.4.28
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
@@ -77219,7 +77219,7 @@ class LivePreview {
|
|
77219
77219
|
});
|
77220
77220
|
const btnModalRefresh = modal.querySelector('.is-modal-refresh');
|
77221
77221
|
btnModalRefresh.addEventListener('click', () => {
|
77222
|
-
this.previewRefresh();
|
77222
|
+
this.previewRefresh(false, true);
|
77223
77223
|
}); //Extend onChange
|
77224
77224
|
|
77225
77225
|
let old2 = this.builder.settings.onChange;
|
@@ -77277,7 +77277,7 @@ class LivePreview {
|
|
77277
77277
|
this.previewRefresh(true);
|
77278
77278
|
}
|
77279
77279
|
|
77280
|
-
previewRefresh(disableOnContentLoad) {
|
77280
|
+
previewRefresh(disableOnContentLoad, hardReload) {
|
77281
77281
|
if (this.modal.classList.contains('active')) {
|
77282
77282
|
// let html = this.builder.html();
|
77283
77283
|
// localStorage.setItem('preview-html', html);
|
@@ -77326,7 +77326,7 @@ class LivePreview {
|
|
77326
77326
|
this.builder.count = 0;
|
77327
77327
|
}
|
77328
77328
|
|
77329
|
-
if (this.builder.livePreviewAlwaysReload) {
|
77329
|
+
if (this.builder.livePreviewAlwaysReload || hardReload) {
|
77330
77330
|
iframe.src = this.builder.previewURL + '?' + Math.floor(Date.now() / 1000);
|
77331
77331
|
} else {
|
77332
77332
|
let iframeDocument = iframe.contentDocument || iframe.contentWindow.document;
|