Skip to content

Commit

Permalink
Add await
Browse files Browse the repository at this point in the history
  • Loading branch information
zorori777 committed Jul 8, 2021
1 parent ea3df80 commit e389820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/Browser.ts
Expand Up @@ -433,7 +433,7 @@ export class Browser extends EventEmitter {
url: 'about:blank',
browserContextId: contextId || undefined,
});
const target = this._targets.get(targetId);
const target = await this._targets.get(targetId);
assert(
await target._initializedPromise,
'Failed to create target for page'
Expand Down

0 comments on commit e389820

Please sign in to comment.