Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add global variable that makes it easy to check if code is running in Storybook #16485

Closed
srmagura opened this issue Oct 27, 2021 · 1 comment

Comments

@srmagura
Copy link
Contributor

This is just a placeholder issue to remind me to implement the window.IS_STORYBOOK feature that I discussed with the team on PR #16379. This feature will provide a safer and more convenient method of detecting if code is running within Storybook. 🙂

@shilman
Copy link
Member

shilman commented Jan 17, 2022

ZOMG!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.5.0-alpha.19 containing PR #16676 that references this issue. Upgrade today to the @next NPM tag to try it out!

npx sb upgrade --prerelease

Closing this issue. Please re-open if you think there's still more to do.

@shilman shilman closed this as completed Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants