Compare commits

..

3 Commits

Author SHA1 Message Date
d9c406800a Fix tests 2024-02-12 23:57:21 +01:00
54b869def1 Release candidate 2024-02-12 23:43:21 +01:00
d80a583979 Better test for isStorybook 2024-02-12 23:42:31 +01:00
2 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "keycloakify",
"version": "9.4.0-rc.16",
"version": "9.4.0-rc.17",
"description": "Create Keycloak themes using React",
"repository": {
"type": "git",

View File

@ -1,3 +1 @@
import { BASE_URL } from "./BASE_URL";
export const isStorybook = BASE_URL.startsWith(".");
export const isStorybook = typeof window === "object" && Object.keys(window).find(key => key.startsWith("__STORYBOOK")) !== undefined;