Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
remove: wait time
Browse files Browse the repository at this point in the history
  • Loading branch information
harshraj8843 authored Feb 5, 2023
1 parent b217417 commit edfb503
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions script/chromium.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ export default async function getScreenshot(screenshot_data) {
await console.log("Setting html content...");
await page.setContent(html);

// Wait for loading of all elements
await console.log("Waiting for loading of all elements...");
await page.waitForTimeout(5000);

// Capture screenshot
await console.log("Capturing screenshot...");
await page.screenshot({
Expand Down

1 comment on commit edfb503

@vercel
Copy link

@vercel vercel bot commented on edfb503 Feb 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.