1
mirror of https://github.com/ThePhaseless/Byparr.git synced 2025-03-16 02:00:21 +08:00

bring tab to front

This commit is contained in:
Thephaseless 2024-07-25 00:39:06 +00:00
parent b9a433905e
commit 0178eeec68

@ -33,6 +33,7 @@ async def read_item(request: LinkRequest):
start_time = int(time.time() * 1000) start_time = int(time.time() * 1000)
browser = await new_browser() browser = await new_browser()
page = await browser.get(request.url) page = await browser.get(request.url)
await page.bring_to_front()
challenged = await asyncio.wait_for( challenged = await asyncio.wait_for(
bypass_cloudflare(page), timeout=request.maxTimeout bypass_cloudflare(page), timeout=request.maxTimeout