Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 18f4c3a

Browse files
committed
Disable scrolling for screenshots for now
1 parent bc399ea commit 18f4c3a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

utils/screenshot.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ module.exports.getScreenshot = async url => {
3232
let outDir = `static/screenshots/websites`
3333
if (url.includes("github.com")) {
3434
outDir = `static/screenshots/github`
35-
screenshotOptions.waitForElement = ".markdown-body"
36-
screenshotOptions.scrollToElement = ".markdown-body"
35+
// https://github.com/sindresorhus/capture-website/issues/47
36+
// screenshotOptions.waitForElement = ".markdown-body"
37+
// screenshotOptions.scrollToElement = ".markdown-body"
3738
}
3839

39-
fs.mkdirSync(outDir, { recursive: true });
40+
fs.mkdirSync(outDir, { recursive: true })
4041

4142
// Remove protocol from url for nicer file names.
4243
const urlClean = url.replace(/(^\w+:|^)\/\/(www)?/, "")

0 commit comments

Comments
 (0)