mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00:00
fix loader not re-injecting on restart
This commit is contained in:
+3
-2
@@ -97,12 +97,13 @@ class PluginManager:
|
|||||||
#await inject_to_tab("SP", "window.syncDeckyPlugins();")
|
#await inject_to_tab("SP", "window.syncDeckyPlugins();")
|
||||||
|
|
||||||
async def loader_reinjector(self):
|
async def loader_reinjector(self):
|
||||||
await sleep(5)
|
check_if_loaded = False
|
||||||
while True:
|
while True:
|
||||||
await sleep(5)
|
await sleep(5)
|
||||||
if not await tab_has_global_var("SP", "deckyHasLoaded"):
|
if not check_if_loaded or not await tab_has_global_var("SP", "deckyHasLoaded"):
|
||||||
logger.info("Plugin loader isn't present in Steam anymore, reinjecting...")
|
logger.info("Plugin loader isn't present in Steam anymore, reinjecting...")
|
||||||
await self.inject_javascript()
|
await self.inject_javascript()
|
||||||
|
check_if_loaded = True
|
||||||
|
|
||||||
async def inject_javascript(self, request=None):
|
async def inject_javascript(self, request=None):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user