Fix tests
This commit is contained in:
parent
54b869def1
commit
d9c406800a
@ -1 +1 @@
|
||||
export const isStorybook = Object.keys(window).find(key => key.startsWith("__STORYBOOK")) !== undefined;
|
||||
export const isStorybook = typeof window === "object" && Object.keys(window).find(key => key.startsWith("__STORYBOOK")) !== undefined;
|
||||
|
Loading…
x
Reference in New Issue
Block a user