Skip to content

Commit

Permalink
Fix an issue where host is preferred for openInBrowser when host is u…
Browse files Browse the repository at this point in the history
…ndefined storybookjs#13521
  • Loading branch information
PenguinOfWar committed Feb 4, 2021
1 parent 7790c72 commit d6f6d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/src/server/dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ export async function storybookDevServer(options: any) {
]);

// TODO #13083 Remove this when compiling the preview is fast enough
if (!options.ci && !options.smokeTest) openInBrowser(networkAddress);
if (!options.ci && !options.smokeTest) openInBrowser(host ? networkAddress : address);

return { ...previewResult, ...managerResult, address, networkAddress };
}

0 comments on commit d6f6d72

Please sign in to comment.