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

add dash in utf-8 #113

Merged
merged 1 commit into from
Nov 14, 2019
Merged

add dash in utf-8 #113

merged 1 commit into from
Nov 14, 2019

Conversation

evertbouw
Copy link
Contributor

The default for TextDecoder is the format 'utf-8'. In my project I'm also using the library @auth0/auth0-spa-js, which loads the polyfill fast-text-encoding for TextDecoder. This polyfilled version will throw an error if it gets passed 'utf8'. This causes my app to crash on Edge.

alternatives:

  • remove the argument, it'll default to utf-8.
  • wrap the initializer in a try/catch

The default for TextDecoder is the format 'utf-8'. In my project I'm also using the library @auth0/auth0-spa-js, which loads the polyfill fast-text-encoding for TextDecoder. This polyfilled version will throw an error if it gets passed 'utf8'. This causes my app to crash on Edge.

alternatives:
- remove the argument, it'll default to utf-8.
- wrap the initializer in a try/catch
Copy link
Member

@mourner mourner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow, well spotted!

@mourner
Copy link
Member

mourner commented Nov 14, 2019

Travis seems stuck for some reason — I'll wait a few hours for it to hopefully pick this up before I can merge and do a patch release.

@evertbouw
Copy link
Contributor Author

No problem, I've pinned mapboxgl to <1.5 for now.

@mourner mourner merged commit 89ed773 into mapbox:master Nov 14, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants