codex-blackboard
codex-blackboard copied to clipboard
Fix emoji check.
The return value of getImageData is an instance of ImageData (https://developer.mozilla.org/en-US/docs/Web/API/ImageData) which doesn't have an array access operation, at least in the standard. You have to access its 'data' member. As a result the old check was comparing undefined to undefined. Also, I don't know what color your man_dancing is, but on Windows he's blue, so comparing the red component didn't work. (Even better would probably be to search for a non-black pixel in a range in case a particular platform happened to have a black pixel there.) Fixes #319