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 committed May 24, 2022
1 parent cc114d5 commit 725cdb0
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
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 725cdb0

Please sign in to comment.