From a2d69b9113f3e634acdf0851316f0879062294a0 Mon Sep 17 00:00:00 2001 From: shoucandanghehe Date: Fri, 16 Aug 2024 18:53:12 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20=E5=B0=9D=E8=AF=95?= =?UTF-8?q?=E6=8F=90=E9=AB=98=E6=88=AA=E5=9B=BE=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_tetris_stats/utils/screenshot.py | 1 - 1 file changed, 1 deletion(-) diff --git a/nonebot_plugin_tetris_stats/utils/screenshot.py b/nonebot_plugin_tetris_stats/utils/screenshot.py index 85587c5..84b8a91 100644 --- a/nonebot_plugin_tetris_stats/utils/screenshot.py +++ b/nonebot_plugin_tetris_stats/utils/screenshot.py @@ -17,7 +17,6 @@ async def screenshot(url: str) -> bytes: await browser.new_page(device_scale_factor=config.tetris.screenshot_quality) as page, ): await page.goto(url) - await page.wait_for_load_state('networkidle') size: ViewportSize = await page.evaluate(""" () => { const element = document.querySelector('#content');