Skip to content

Commit

Permalink
Add a proxy server support for Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
DevilXD committed Nov 11, 2022
1 parent 71d4bf5 commit 1aa1976
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,8 @@ async def ask_login(self) -> str:
options.add_argument("--no-sandbox")
options.add_argument("--test-type")
options.add_argument("--disable-gpu")
if self._manager._twitch.settings.proxy:
options.add_argument(f"--proxy-server={self._manager._twitch.settings.proxy}")
options.set_capability("pageLoadStrategy", "eager")
try:
driver_coro = loop.run_in_executor(
Expand Down

0 comments on commit 1aa1976

Please sign in to comment.