mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 05:37:20 +03:00
fix: do not produce TargetClosedError: <message>
errors (#28704)
This commit is contained in:
parent
e2c335a40c
commit
6b178d22e2
@ -28,7 +28,6 @@ export class TimeoutError extends Error {
|
||||
export class TargetClosedError extends Error {
|
||||
constructor(cause?: string) {
|
||||
super(cause || 'Target page, context or browser has been closed');
|
||||
this.name = 'TargetClosedError';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user