Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Commit 8f71e35

Browse files
committed
fix(serve): fix 'launchBrowser' of undefined
fixes ionic-team/ionic-cli#2620
1 parent a1ccc17 commit 8f71e35

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/serve.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ export function serve(context: BuildContext) {
6565
if (err && err.isFatal) {
6666
throw err;
6767
} else {
68-
onReady(config, context);
68+
if (config) {
69+
onReady(config, context);
70+
}
71+
6972
return config;
7073
}
7174
});

0 commit comments

Comments
 (0)