Skip to content

add dash in utf-8 #113

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

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.

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.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy