We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c26b1f9 + 62971e8 commit 1df68ecCopy full SHA for 1df68ec
src/mswLoader.ts
@@ -57,7 +57,7 @@ export const mswLoader = async (context: Context) => {
57
return;
58
}
59
60
- if (viewMode === "docs" && window.__MSW_STORYBOOK__.worker) {
+ if (viewMode === "docs" && window.__MSW_STORYBOOK__ && window.__MSW_STORYBOOK__.worker) {
61
worker =
62
!isNodeProcess() && window.__MSW_STORYBOOK__.worker;
63
} else {
0 commit comments