mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: remove updated but unused variable (#11679)
This commit is contained in:
parent
3b3b9c385f
commit
f6c6d768df
@ -63,11 +63,6 @@ export class FirefoxTargetManager
|
|||||||
* Tracks which sessions attach to which target.
|
* Tracks which sessions attach to which target.
|
||||||
*/
|
*/
|
||||||
#availableTargetsBySessionId = new Map<string, CdpTarget>();
|
#availableTargetsBySessionId = new Map<string, CdpTarget>();
|
||||||
/**
|
|
||||||
* If a target was filtered out by `targetFilterCallback`, we still receive
|
|
||||||
* events about it from CDP, but we don't forward them to the rest of Puppeteer.
|
|
||||||
*/
|
|
||||||
#ignoredTargets = new Set<string>();
|
|
||||||
#targetFilterCallback: TargetFilterCallback | undefined;
|
#targetFilterCallback: TargetFilterCallback | undefined;
|
||||||
#targetFactory: TargetFactory;
|
#targetFactory: TargetFactory;
|
||||||
|
|
||||||
@ -162,7 +157,6 @@ export class FirefoxTargetManager
|
|||||||
|
|
||||||
const target = this.#targetFactory(event.targetInfo, undefined);
|
const target = this.#targetFactory(event.targetInfo, undefined);
|
||||||
if (this.#targetFilterCallback && !this.#targetFilterCallback(target)) {
|
if (this.#targetFilterCallback && !this.#targetFilterCallback(target)) {
|
||||||
this.#ignoredTargets.add(event.targetInfo.targetId);
|
|
||||||
this.#finishInitializationIfReady(event.targetInfo.targetId);
|
this.#finishInitializationIfReady(event.targetInfo.targetId);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user