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

fix: Puppeteer 1.7.0 support #100

Merged
merged 2 commits into from
Aug 19, 2018
Merged

fix: Puppeteer 1.7.0 support #100

merged 2 commits into from
Aug 19, 2018

Conversation

jasonmit
Copy link
Contributor

@jasonmit jasonmit commented Aug 19, 2018

Resolves #93 also refactored to avoid mutating the puppeteer object passed in to Polly.

requestResourceTypes: ['xhr', 'fetch']

/* NOTE: `"other" is needed as of puppeteer 1.7.0 to capture the passthrough request */
requestResourceTypes: ['xhr', 'fetch', 'other']
Copy link
Contributor Author

@jasonmit jasonmit Aug 19, 2018

Choose a reason for hiding this comment

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

As of Puppeteer 1.7.0, the resource type of the fetch we run in the browser gets triggered as "other" for a resource type.

@jasonmit jasonmit requested a review from offirgolan August 19, 2018 09:27
@jasonmit jasonmit force-pushed the u/jasonmit/puppeteer-1.7.0 branch from 89742cf to b449cfb Compare August 19, 2018 09:28
@jasonmit jasonmit merged commit e208b38 into master Aug 19, 2018
@jasonmit jasonmit deleted the u/jasonmit/puppeteer-1.7.0 branch August 19, 2018 10:05
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.

1 participant