mattdesl/gifenc

Builded version doesn't have "opts" default parameter in quantize function

froquede opened this issue · 1 comments

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.

function quantize(rgba, maxColors, opts) {

Thanks! Fixed in 1.0.3.