diff --git a/src/client/preview/index.js b/src/client/preview/index.js index 994c8d857e3..0a4118d850e 100644 --- a/src/client/preview/index.js +++ b/src/client/preview/index.js @@ -13,7 +13,8 @@ import { selectStory } from './actions'; import reducer from './reducer'; // check whether we're running on node/browser -const isBrowser = typeof window !== 'undefined'; +const { navigator } = global; +const isBrowser = navigator && navigator. userAgent !== 'storyshots'; const storyStore = new StoryStore(); const reduxStore = createStore(reducer);