Skip to content

Commit

Permalink
Merge pull request #18305 from lesha1201/fix/open-in-browser-for-wsl
Browse files Browse the repository at this point in the history
CLI: Fix open in browser doesn't work in WSL
  • Loading branch information
shilman authored May 24, 2022
2 parents 9cb5699 + eab88cc commit 4b849f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core-server/src/utils/open-in-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import dedent from 'ts-dedent';
export function openInBrowser(address: string) {
getDefaultBrowser(async (err: any, res: any) => {
try {
if (res.isChrome || res.isChromium) {
if (res && (res.isChrome || res.isChromium)) {
// We use betterOpn for Chrome because it is better at handling which chrome tab
// or window the preview loads in.
betterOpn(address);
Expand Down

0 comments on commit 4b849f9

Please sign in to comment.