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 whatwg-fetch polyfill. #7

Merged
merged 1 commit into from
Nov 1, 2019
Merged

Add whatwg-fetch polyfill. #7

merged 1 commit into from
Nov 1, 2019

Conversation

jgerigmeyer
Copy link
Member

Cute animal pic

Because everyone likes pictures of animals.

Description

The commit messages say what you did; this should explain why and how.

Because Babel does not automatically polyfill the fetch API for older browsers (see https://github.com/zloirock/core-js#missing-polyfills and zloirock/core-js#25).

Steps to test/reproduce

Please explain how to best reproduce the issue and/or test the changes locally.

I guess fire up your old IE11 browser to test functionally? I didn't bother.


Reviewer tasks:

  • Reviewed code

import { getAuthToken, getEnableConfig, TrelloPromise } from './store';

export const API_BASE_URL = 'https://api.harvestapp.com/api/v2/';
export const API_BASE_URL = 'https://api.harvestapp.com/v2/';
Copy link
Member Author

Choose a reason for hiding this comment

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

@carljm I guess apparently both of these work? This now matches the docs, as far as I can tell.

Copy link
Member Author

Choose a reason for hiding this comment

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

(I did functionally test this -- it works the same as far as I can tell.)

@carljm carljm merged commit 51ee460 into master Nov 1, 2019
@carljm carljm deleted the add-fetch-polyfill branch November 1, 2019 19:56
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