Skip to content

Commit

Permalink
Merge branch 'master' of github.com:storyofams/storyblok-toolkit into…
Browse files Browse the repository at this point in the history
… beta
  • Loading branch information
BJvdA committed May 7, 2021
2 parents de45de6 + 3118760 commit 410a20c
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

0 comments on commit 410a20c

Please sign in to comment.