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