diff --git a/capture/index.js b/capture/index.js index e41aed69..0fd3106f 100644 --- a/capture/index.js +++ b/capture/index.js @@ -94,6 +94,7 @@ app.get('/*', async (req, res) => { if (commentId) { console.timeLog(timeLabel, 'scrolling to comment') await page.waitForSelector('.outline-it') + await new Promise((resolve, _reject) => setTimeout(resolve, 100)) } const file = await page.screenshot({ type: 'png', captureBeyondViewport: false })