diff options
| author | Beebles <102569435+beebls@users.noreply.github.com> | 2024-01-19 19:54:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-19 18:54:56 -0800 |
| commit | f9a07da3ccfc8e795a1f4b5bf875c0c0337879c7 (patch) | |
| tree | a258152b192ecd23c67f55748bcfa6f31aac34cf /backend | |
| parent | 12a99b8b067e5f0b832b51861427091f3e54bec1 (diff) | |
| download | decky-loader-f9a07da3ccfc8e795a1f4b5bf875c0c0337879c7.tar.gz decky-loader-f9a07da3ccfc8e795a1f4b5bf875c0c0337879c7.zip | |
fix: Fix on Chromium 109 beta (#576)v2.10.13-pre1
* Add new user agent to do not close tabs list
* fix: bump DFL to fix chromium 109 beta
---------
Co-authored-by: Sims <38142618+suchmememanyskill@users.noreply.github.com>
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/src/injector.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/src/injector.py b/backend/src/injector.py index a217f689..2e8846c6 100644 --- a/backend/src/injector.py +++ b/backend/src/injector.py @@ -412,7 +412,7 @@ async def get_tab_lambda(test: Callable[[Tab], bool]) -> Tab: SHARED_CTX_NAMES = ["SharedJSContext", "Steam Shared Context presented by Valveā¢", "Steam", "SP"] CLOSEABLE_URLS = ["about:blank", "data:text/html,%3Cbody%3E%3C%2Fbody%3E"] # Closing anything other than these *really* likes to crash Steam -DO_NOT_CLOSE_URL = "Valve Steam Gamepad/default" # Steam Big Picture Mode tab +DO_NOT_CLOSE_URLS = ["Valve Steam Gamepad/default", "Valve%20Steam%20Gamepad/default"] # Steam Big Picture Mode tab def tab_is_gamepadui(t: Tab) -> bool: return "https://steamloopback.host/routes/" in t.url and t.title in SHARED_CTX_NAMES @@ -432,7 +432,7 @@ async def inject_to_tab(tab_name: str, js: str, run_async: bool = False): async def close_old_tabs(): tabs = await get_tabs() for t in tabs: - if not t.title or (t.title not in SHARED_CTX_NAMES and any(url in t.url for url in CLOSEABLE_URLS) and DO_NOT_CLOSE_URL not in t.url): + if not t.title or (t.title not in SHARED_CTX_NAMES and any(url in t.url for url in CLOSEABLE_URLS) and not any(url in t.url for url in DO_NOT_CLOSE_URLS)): logger.debug("Closing tab: " + getattr(t, "title", "Untitled")) await t.close() await sleep(0.5) |
