Builded version doesn't have "opts" default parameter in quantize function
froquede opened this issue · 1 comments
froquede commented
When using the builded version the function quantize(rgba, maxColors, opts = {}) doesn't have a default parameter for "opts", if you call quantize() without options it breaks the execution:
Cannot read property 'useSqrt' of undefined (opts is undefined, no default parameter)
If i build it manually it doesn't happen, tested with unpkg and repo master dist folder versions.
Line 359 in a5a5df2
mattdesl commented
Thanks! Fixed in 1.0.3.