less stupid method

This commit is contained in:
AAGaming
2022-08-14 13:17:39 -04:00
parent a4e2237fc0
commit c9430f5be4

View File

@@ -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: