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