Skip to content

fix(frontend): screen shot not trigger #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 29, 2025
Prev Previous commit
Next Next commit
set 2 second make sure get final picture
  • Loading branch information
ZHallen122 committed Mar 26, 2025
commit dc6a6b82718a3468f95e65b133026366f06a6516
2 changes: 1 addition & 1 deletion frontend/src/app/api/screenshot/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export async function GET(req: Request) {
timeout: 60000, // Increased timeout to 60 seconds
});

await new Promise((resolve) => setTimeout(resolve, 1000)); // Waits for 1 seconds
await new Promise((resolve) => setTimeout(resolve, 2000)); // Waits for 2 seconds

// Take screenshot
const screenshot = await page.screenshot({
Expand Down
Loading