fix(controllers): Fix issue with async adding stealth scripts
This commit is contained in:
@@ -538,7 +538,7 @@ class AsyncDynamicSession(DynamicSession):
|
|||||||
|
|
||||||
if self.stealth:
|
if self.stealth:
|
||||||
for script in _compiled_stealth_scripts():
|
for script in _compiled_stealth_scripts():
|
||||||
await page.add_init_script(path=script)
|
await page.add_init_script(script=script)
|
||||||
|
|
||||||
return self.page_pool.add_page(page)
|
return self.page_pool.add_page(page)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user