mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
refactor: remove extra variable on onTargetInfoChanged (#11249)
This commit is contained in:
parent
ab15aa5af8
commit
9db4a94617
@ -284,9 +284,6 @@ export class ChromeTargetManager
|
|||||||
target._initializedDeferred.value() === InitializationStatus.SUCCESS;
|
target._initializedDeferred.value() === InitializationStatus.SUCCESS;
|
||||||
|
|
||||||
if (isPageTargetBecomingPrimary(target, event.targetInfo)) {
|
if (isPageTargetBecomingPrimary(target, event.targetInfo)) {
|
||||||
const target = this.#attachedTargetsByTargetId.get(
|
|
||||||
event.targetInfo.targetId
|
|
||||||
);
|
|
||||||
const session = target?._session();
|
const session = target?._session();
|
||||||
assert(
|
assert(
|
||||||
session,
|
session,
|
||||||
|
Loading…
Reference in New Issue
Block a user