colorsys icon indicating copy to clipboard operation
colorsys copied to clipboard

Bug/Compatibility 1.0.22: Arrows Function breaks IE11

Open f-aubert opened this issue 6 years ago • 1 comments

Hello, in upgrading I found out that a newly added arrow function breaks compatibility with IE. Could it be avoided?

Here: const transformFn = encoding === 'hsl' ? c => c // If HSL return as incame : colorsys.getTransformEncodingFunction(nextHsl, encoding)

if (typeof transformFn !== 'function') { return color }

f-aubert avatar Oct 31 '18 07:10 f-aubert

Sure, could you submit a quick PR?

Sorry for taking so long to answer.

jsdario avatar Nov 16 '18 09:11 jsdario