There was an error while loading. Please reload this page.
ng doc
1 parent 37b4714 commit 4403fb4Copy full SHA for 4403fb4
1 file changed
packages/angular/cli/commands/doc-impl.ts
@@ -19,8 +19,14 @@ export class DocCommand extends Command<DocCommandSchema> {
19
searchUrl = `https://www.google.com/search?q=site%3Aangular.io+${options.keyword}`;
20
}
21
22
- return opn(searchUrl, {
23
- wait: false,
24
- });
+ let opt;
+ if (process.platform === 'win32') {
+ // window doesn't support to be called without `wait: true`
25
+ opt = { app: 'chrome', wait: true };
26
+ } else {
27
+ opt = { wait: false };
28
+ }
29
+
30
+ return opn(searchUrl, opt);
31
32
0 commit comments