We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e6d6bf commit d866746Copy full SHA for d866746
packages/runner-shared/src/event-manager.js
@@ -321,7 +321,9 @@ export const eventManager = {
321
322
// The window.top should not change between test reloads, and we only need to bind the message event once
323
// Forward all message events to the current instance of the multi-origin communicator
324
- window.top?.addEventListener('message', ({ data, source }) => {
+ if (!window.top) throw new Error('missing window.top in event-manager')
325
+
326
+ window.top.addEventListener('message', ({ data, source }) => {
327
Cypress.primaryOriginCommunicator.onMessage({ data, source })
328
}, false)
329
},
0 commit comments