Better test for isStorybook
This commit is contained in:
parent
99bfd7379b
commit
d80a583979
@ -1,3 +1 @@
|
||||
import { BASE_URL } from "./BASE_URL";
|
||||
|
||||
export const isStorybook = BASE_URL.startsWith(".");
|
||||
export const isStorybook = Object.keys(window).find(key => key.startsWith("__STORYBOOK")) !== undefined;
|
||||
|
Loading…
x
Reference in New Issue
Block a user