Skip to content

Conversation

@finallyblueskies
Copy link

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

Copy link
Member

@yakca yakca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this no longer an issue these days but I don't see any harm in makings these explicit and gives some legacy compatibility

@yakca yakca merged commit 53329f7 into bbc:develop Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants