fix(serviceworker): network inspection works without options.serviceWorkers set (#19870)
This commit is contained in:
parent
6193e6d8ea
commit
59e1437d7f
|
|
@ -121,6 +121,6 @@ export class CRServiceWorker extends Worker {
|
||||||
}
|
}
|
||||||
|
|
||||||
private _isNetworkInspectionEnabled(): boolean {
|
private _isNetworkInspectionEnabled(): boolean {
|
||||||
return this._browserContext._options.serviceWorkers === 'allow';
|
return this._browserContext._options.serviceWorkers !== 'block';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue