From 84c3b039c385ad872bb0f22eba7a3d2cd4a5ea10 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Mon, 24 Oct 2022 19:14:56 -0400 Subject: preview 10/21/2022 fixes (#234) * initial fixes: everything working except toasts and patch notes * tabshook changes, disable toaster for now * prettier * oops * implement custom toaster because I am tired of Valve's shit also fix QAM not injecting sometimes * remove extra logging * add findSP, fix patch notes, fix vscode screwup * fix patch notes * show error when plugin frontends fail to load * add get_tab_lambda * add css and has_element helpers to Tab * small modals fixup * Don't forceUpdate QuickAccess on stable * add routes prop used to get tabs component * add more dev utils to DFL global --- backend/utilities.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backend/utilities.py') diff --git a/backend/utilities.py b/backend/utilities.py index 8d899c0d..8351f3e0 100644 --- a/backend/utilities.py +++ b/backend/utilities.py @@ -7,7 +7,7 @@ from asyncio import sleep, start_server, gather, open_connection from aiohttp import ClientSession, web from logging import getLogger -from injector import inject_to_tab, get_tab +from injector import inject_to_tab, get_gamepadui_tab import helpers import subprocess @@ -248,7 +248,7 @@ class Utilities: self.start_rdt_proxy(ip, 8097) script = "if(!window.deckyHasConnectedRDT){window.deckyHasConnectedRDT=true;\n" + await res.text() + "\n}" self.logger.info("Connected to React DevTools, loading script") - tab = await get_tab("SP") + tab = await get_gamepadui_tab() # RDT needs to load before React itself to work. result = await tab.reload_and_evaluate(script) self.logger.info(result) @@ -259,7 +259,7 @@ class Utilities: async def disable_rdt(self): self.logger.info("Disabling React DevTools") - tab = await get_tab("SP") + tab = await get_gamepadui_tab() self.rdt_script_id = None await tab.evaluate_js("location.reload();", False, True, False) self.logger.info("React DevTools disabled") -- cgit v1.2.3