codex-blackboard icon indicating copy to clipboard operation
codex-blackboard copied to clipboard

Fix emoji check.

Open Torgen opened this issue 7 years ago • 0 comments

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

Torgen avatar Jan 27 '18 20:01 Torgen