There was an error while loading. Please reload this page.
ng doc
1 parent e2bebe9 commit 2eafa92Copy full SHA for 2eafa92
1 file changed
packages/angular/cli/commands/doc-impl.ts
@@ -24,8 +24,11 @@ export class DocCommand extends Command<DocCommandSchema> {
24
searchUrl = `https://www.google.com/search?q=site%3Aangular.io+${options.keyword}`;
25
}
26
27
- return opn(searchUrl, {
28
- wait: false,
+ // We should wrap `opn` in a new Promise because `opn` is already resolved
+ await new Promise(() => {
29
+ opn(searchUrl, {
30
+ wait: false,
31
+ });
32
});
33
34
0 commit comments