Skip to content

Commit

Permalink
Use customWidth as conditional launch scan with custom width
Browse files Browse the repository at this point in the history
  • Loading branch information
younglim committed Mar 31, 2023
1 parent f9603a7 commit c943dac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crawlers/crawlDomain.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const crawlDomain = async (url, randomToken, host, viewportSettings, maxRequests
device = devices['iPhone 11'];
} else if (customDevice === 'Samsung Galaxy S9+') {
device = devices['Galaxy S9+'];
} else if (customDevice === "Specify viewport") {
} else if (viewportWidth) {
device = { viewport: { width: Number(viewportWidth), height: 720 }};
} else if (customDevice) {
device = devices[customDevice.replace('_', / /g)];
Expand Down
2 changes: 1 addition & 1 deletion crawlers/crawlSitemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const crawlSitemap = async (
device = devices['iPhone 11'];
} else if (customDevice === 'Samsung Galaxy S9+') {
device = devices['Galaxy S9+'];
} else if (customDevice === "Specify viewport") {
} else if (viewportWidth) {
device = { viewport: { width: Number(viewportWidth), height: 720 }};
} else if (customDevice) {
device = devices[customDevice.replace('_', / /g)];
Expand Down

0 comments on commit c943dac

Please sign in to comment.