Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/Compatibility 1.0.22: Arrows Function breaks IE11 #26

Open
f-aubert opened this issue Oct 31, 2018 · 1 comment
Open

Bug/Compatibility 1.0.22: Arrows Function breaks IE11 #26

f-aubert opened this issue Oct 31, 2018 · 1 comment

Comments

@f-aubert
Copy link

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
}

@jsdario
Copy link
Member

jsdario commented Nov 16, 2018

Sure, could you submit a quick PR?

Sorry for taking so long to answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants