diff --git a/lib/channel-postmessage/src/index.ts b/lib/channel-postmessage/src/index.ts index c23774c4dd8..f37703bdae1 100644 --- a/lib/channel-postmessage/src/index.ts +++ b/lib/channel-postmessage/src/index.ts @@ -84,7 +84,7 @@ export class PostmsgTransport { this.buffer.push({ event, resolve, reject }); }); } - if (frames.length && this.buffer.length) { + if (this.buffer.length) { this.flush(); }