Skip to content

Commit

Permalink
Added fix for asus rog ally on windows to prevent an error related wi… (
Browse files Browse the repository at this point in the history
#114)

* Added fix for asus rog ally on windows to prevent an error related with websockets connection

* refactor code to use PLATFORM_WIN
  • Loading branch information
iPablo committed Apr 10, 2024
1 parent 44805c6 commit c66f1d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions css_browserhook.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os, re, uuid, asyncio, json, aiohttp, time
from typing import List
from css_utils import get_theme_path, Log, Result
from css_utils import get_theme_path, Log, Result, PLATFORM_WIN
import css_inject

MAX_QUEUE_SIZE = 500
Expand Down Expand Up @@ -414,7 +414,7 @@ async def health_check(self):
while True:
await asyncio.sleep(3)
try:
async with aiohttp.ClientSession() as web:
async with aiohttp.ClientSession(trust_env=PLATFORM_WIN) as web:
res = await web.get(f"http://127.0.0.1:8080/json/version", timeout=3)

if (res.status != 200):
Expand Down

0 comments on commit c66f1d1

Please sign in to comment.