mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: remove redundant await while fetching target (#7351)
This patch removes the redundant `await` from the block while fetching the target. The value in the map is a `Target` instance, which itself is not an async resource.
This commit is contained in:
parent
4ce4110628
commit
083b297a67
@ -433,7 +433,7 @@ export class Browser extends EventEmitter {
|
||||
url: 'about:blank',
|
||||
browserContextId: contextId || undefined,
|
||||
});
|
||||
const target = await this._targets.get(targetId);
|
||||
const target = this._targets.get(targetId);
|
||||
assert(
|
||||
await target._initializedPromise,
|
||||
'Failed to create target for page'
|
||||
|
Loading…
Reference in New Issue
Block a user