color-thief icon indicating copy to clipboard operation
color-thief copied to clipboard

"Uncaught ReferenceError: i is not defined at n.onload" when calling getImageData

Open jcgjunge opened this issue 2 years ago • 0 comments

There seems to be an error in the function getImageData.

The line "i = uInt8Array.length;" is giving the error "Uncaught ReferenceError: i is not defined at n.onload". Since it does not really do anything the line should be deleted.

https://github.com/lokesh/color-thief/blob/ef231c711309dc32be1efa83bd4da7c0ed21cd6e/src/color-thief.js#L120

jcgjunge avatar Jun 03 '22 09:06 jcgjunge