Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/services/browser_captcha_personal.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ async def _tab_evaluate(
timeout_seconds: Optional[float] = None,
*,
await_promise: bool = False,
return_by_value: bool = False,
return_by_value: bool = True,
):
result = await self._run_with_timeout(
tab.evaluate(
Expand Down Expand Up @@ -2344,7 +2344,7 @@ async def _extract_tab_fingerprint(self, tab) -> Optional[Dict[str, Any]]:
"""从 nodriver 标签页提取浏览器指纹信息。"""
try:
fingerprint = await self._tab_evaluate(tab, """
() => {
(() => {
const ua = navigator.userAgent || "";
const lang = navigator.language || "";
const uaData = navigator.userAgentData || null;
Expand All @@ -2371,7 +2371,7 @@ async def _extract_tab_fingerprint(self, tab) -> Optional[Dict[str, Any]]:
sec_ch_ua_mobile: secChUaMobile,
sec_ch_ua_platform: secChUaPlatform,
};
}
})()
""", label="extract_tab_fingerprint", timeout_seconds=8.0)
if not isinstance(fingerprint, dict):
return None
Expand Down
Loading