Skip to content

Commit 0b96a81

Browse files
Merge pull request #569 from contentstack/VP-1133/purge-flag-4-dev-v4-sync
Vp 1133/purge flag 4 dev v4 sync
2 parents 066b705 + 2cf372d commit 0b96a81

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/livePreview/editButton/editButton.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,12 @@ effect(function handleWindowTypeChange() {
570570
// we need to specify when to run this effect.
571571
// here, we run it when the value of windowType changes
572572
if (typeof window === "undefined") return;
573+
if (
574+
typeof process !== "undefined" &&
575+
(process?.env?.PURGE_PREVIEW_SDK === "true" ||
576+
process?.env?.REACT_APP_PURGE_PREVIEW_SDK === "true")
577+
)
578+
return;
573579
Config.get().windowType;
574580
if (LivePreviewEditButton && !isOpeningInTimeline()) {
575581
toggleEditButtonElement();

0 commit comments

Comments
 (0)