Forked from dtapuska/gist:bd92755849991c2fd9b87e1d46691321
Created
October 23, 2018 14:49
-
-
Save omunroe-com/6b1a2a7e1c940697688b722e4c27046e to your computer and use it in GitHub Desktop.
PostMessage equivalence
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker.postMessage('example', {transfer: [a,b]}); | |
will be equivalent to | |
worker.postMessage('example', [a, b]); | |
window.postMessage('example', 'http://example.com'); | |
will be equivalent to | |
window.postMessage('example', {targetOrigin: 'http://example.com'}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment