Skip to content

Commit

Permalink
feat: add captureServiceWorker flag when opening browser (#845)
Browse files Browse the repository at this point in the history
* feat: add captureServiceWorker flag when opening browser

* chore: rename captureServiceWorker -> captureMockedServiceWorker

* fix: captureMockedServiceWorker will be under discovery
  • Loading branch information
nilshah98 authored Nov 29, 2023
1 parent 6a02490 commit 0dd53cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export async function* withPage(percy, url, callback, retry) {
let page = yield percy.browser.page({
networkIdleTimeout: percy.config.discovery.networkIdleTimeout,
requestHeaders: getAuthHeaders(percy.config.discovery),
captureMockedServiceWorker: percy.config.discovery.captureMockedServiceWorker,
userAgent: percy.config.discovery.userAgent
});

Expand Down

0 comments on commit 0dd53cb

Please sign in to comment.