Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/livePreview/editButton/editButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,12 @@ effect(function handleWindowTypeChange() {
// we need to specify when to run this effect.
// here, we run it when the value of windowType changes
if (typeof window === "undefined") return;
if (
typeof process !== "undefined" &&
(process?.env?.PURGE_PREVIEW_SDK === "true" ||
process?.env?.REACT_APP_PURGE_PREVIEW_SDK === "true")
)
return;
Config.get().windowType;
if (LivePreviewEditButton && !isOpeningInTimeline()) {
toggleEditButtonElement();
Expand Down
Loading