VideoContext icon indicating copy to clipboard operation
VideoContext copied to clipboard

Made createImageBitmap usage Firefox compliant

Open finallyblueskies opened this issue 5 years ago • 0 comments

Currently, if you try and render image nodes in Firefox you will get the following error:

TypeError
Window.createImageBitmap: 2 is not a valid argument count for any overload.

This is because Firefox does not support passing options as the second argument in the function, whereas the 6 argument variant works as intended.

Before: https://codesandbox.io/s/videocontext-imagenode-xrrg3?file=/src/index.js After: https://codesandbox.io/s/videocontext-imagenode-pk6sy

finallyblueskies avatar May 04 '20 09:05 finallyblueskies