Commit 0e320d63 authored by nextime's avatar nextime

Fix JavaScript string literal syntax error in array join

- Change '\\n' to '\n' in allTexts.join() call
- This was causing 'missing ) after argument list' error in page.evaluate
- JavaScript string literals need single backslash, not double backslash
- Resolves the remaining JavaScript syntax error in JSON response detection
parent c9f87350
......@@ -605,7 +605,7 @@ async def detect_json_response_with_id(page, container_selector, request_id, pro
// Try different text combinations
const combinations = [
allTexts.join(' '),
allTexts.join('\\n'),
allTexts.join('\n'),
allTexts.join(''),
...allTexts // Individual texts
];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment