Skip to content

Commit

Permalink
CLI Config Support
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit3200 committed Oct 3, 2024
1 parent ad84e74 commit 9586d3b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,12 @@ function isResponsiveDOMCaptureValid(options) {
if (utils.percy?.config?.percy?.deferUploads) {
return false;
}
return options?.responsive_snapshot_capture || options?.responsiveSnapshotCapture || false;
return (
options?.responsive_snapshot_capture ||
options?.responsiveSnapshotCapture ||
utils.percy?.config?.snapshot?.responsiveSnapshotCapture ||
false
);
}

async function captureDOM(driver, options = {}) {
Expand Down

0 comments on commit 9586d3b

Please sign in to comment.