Skip to content

check for global.fetch before binding it #674

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
Sep 16, 2019

Conversation

bbosiljcic
Copy link
Contributor

We ran into some issues where this was executed in browsers that didn't support fetch (e.g. IE11)

@Richienb Richienb requested review from bitinn and xxczaki September 16, 2019 10:54
Copy link
Member

@Richienb Richienb left a comment

Choose a reason for hiding this comment

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

LGTM. We just need one more approving review from @bitinn or @xxczaki.

@bitinn
Copy link
Collaborator

bitinn commented Sep 16, 2019

AFAIK we will be dropping browser export in v3 release, so this is a band-aid patch for v2 only, if there is going to be another release of v2.

The correct solution would be to use some of these suggested modules that export correctly given contexts.

https://github.com/bitinn/node-fetch#motivation

Otherwise LGTM

@Richienb Richienb merged commit 5535c2e into node-fetch:master Sep 16, 2019
This was referenced Mar 6, 2021
This was referenced Mar 17, 2021
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.

3 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