remove if
This commit is contained in:
parent
cc78c53093
commit
b55ad6028a
|
|
@ -1571,8 +1571,7 @@ export class Frame extends SdkObject {
|
|||
|
||||
dispose(reason: string) {
|
||||
for (const data of this._contextData.values()) {
|
||||
if (data.context)
|
||||
data.context.contextDestroyed(reason);
|
||||
data.context?.contextDestroyed(reason);
|
||||
data.contextPromise.resolve({ destroyedReason: reason });
|
||||
}
|
||||
if (this._parentFrame)
|
||||
|
|
|
|||
Loading…
Reference in a new issue