Created
September 14, 2017 22:57
-
-
Save zerobias/b4f7d46cd20698d6ea3cdd476901ef3e to your computer and use it in GitHub Desktop.
Web worker transferable object: feature detection
This file contains hidden or 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
| var ab = new ArrayBuffer(1); | |
| worker.postMessage(ab, [ab]); | |
| if (ab.byteLength) { | |
| alert('Transferables are not supported in your browser!'); | |
| } else { | |
| // Transferables are supported. | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment