We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
window
window.postMessage
stockroom/src/worker.js
Line 43 in 0c99699
The easiest way to fix this, is to add extend the condition to be: if (typeof postMessage === 'function' && postMessage.length === 1)
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
The text was updated successfully, but these errors were encountered:
Check if postMessage has 1 argument.
d9aa568
This prevents calling window.postMessage accidently when using the "inline" version within a normal browser. Closes developit#8
No branches or pull requests
is thrown in the normal browsers
window
context becausewindow.postMessage
expects 2 arguments and is called with one here:stockroom/src/worker.js
Line 43 in 0c99699
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
The text was updated successfully, but these errors were encountered: