- Notifications
You must be signed in to change notification settings - Fork 44
Closed
Description
TypeError Failed to execute 'postMessage' on 'Window': 2 arguments required, but only 1 present. is thrown in the normal browsers window context because window.postMessage expects 2 arguments and is called with one here:
Line 43 in 0c99699
| if (typeof postMessage==='function') postMessage(sendQueue); |
The easiest way to fix this, is to add extend the condition to be:
if (typeof postMessage === 'function' && postMessage.length === 1)
I'll probably PR later, but I'm documenting my findings while I'm debugging an other error.
Edit: Example emitting this error: https://codesandbox.io/s/10r1j4z06l
developit
Metadata
Metadata
Assignees
Labels
No labels