Skip to content

Commit

Permalink
instagram: fix ChromeWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed May 5, 2024
1 parent 66a7cce commit b2de400
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions automon/integrations/instagram/client_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,10 @@ async def start(self):
self.useragent = await self.browser.get_random_user_agent()

if self.headless:
await self.browser.config.webdriver_wrapper.in_headless()
await self.browser.config.webdriver_wrapper.set_user_agent(self.useragent)
self.browser.config.webdriver_wrapper.in_headless()
self.browser.config.webdriver_wrapper.set_user_agent(self.useragent)
else:
await self.browser.config.webdriver_wrapper.set_user_agent(self.useragent)
self.browser.config.webdriver_wrapper.set_user_agent(self.useragent)

@property
def urls(self):
Expand Down

0 comments on commit b2de400

Please sign in to comment.