Skip to content

Commit

Permalink
ee
Browse files Browse the repository at this point in the history
  • Loading branch information
OasisAkari committed Oct 31, 2024
1 parent 3dd63e2 commit 3c081c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ span.heimu a.external, span.heimu a.external:visited, span.heimu a.extiw, span.h


async function makeScreenshot(page, el) {
await page.waitForNetworkIdle()
// await page.waitForNetworkIdle()
await page.evaluate(() => {
window.scroll(0, 0)
})
Expand All @@ -60,7 +60,7 @@ async function makeScreenshot(page, el) {
await page.evaluate((xpos, ypos) => {
window.scroll(xpos, ypos)
}, contentSize.x, ypos)
await page.waitForNetworkIdle()
// await page.waitForNetworkIdle()
console.log(contentSize.x, ypos, contentSize.width, content_height)
let r = await page.screenshot({
type: 'jpeg', quality: 90, encoding: 'base64', clip: {
Expand Down

0 comments on commit 3c081c4

Please sign in to comment.