Skip to content

Commit

Permalink
fix(preview): hide indicator in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
BJvdA committed May 6, 2021
1 parent 9d109c3 commit 3118760
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bridge/withStory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export const withStory = <T extends WithStoryProps = WithStoryProps>(
if (
(props as any)?.__storyblok_toolkit_preview &&
typeof window !== 'undefined' &&
(!window.storyblok || !window.storyblok.isInEditor())
(!window.location?.search?.includes('_storyblok=') ||
(window.storyblok && !window.storyblok?.isInEditor()))
) {
setPreview(true);
}
Expand Down

1 comment on commit 3118760

@vercel
Copy link

@vercel vercel bot commented on 3118760 May 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.