mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00:00
increase webhelper restart inject delay
This commit is contained in:
@@ -207,7 +207,7 @@ class PluginManager:
|
|||||||
await tab.close_websocket()
|
await tab.close_websocket()
|
||||||
self.js_ctx_tab = None
|
self.js_ctx_tab = None
|
||||||
await restart_webhelper()
|
await restart_webhelper()
|
||||||
await sleep(1)
|
await sleep(5)
|
||||||
return # We'll catch the next tab in the main loop
|
return # We'll catch the next tab in the main loop
|
||||||
await tab.evaluate_js("try{if (window.deckyHasLoaded){setTimeout(() => SteamClient.Browser.RestartJSContext(), 100)}else{window.deckyHasLoaded = true;(async()=>{try{await import('http://localhost:1337/frontend/index.js?v=%s')}catch(e){console.error(e)};})();}}catch(e){console.error(e)}" % (get_loader_version(), ), False, False, False)
|
await tab.evaluate_js("try{if (window.deckyHasLoaded){setTimeout(() => SteamClient.Browser.RestartJSContext(), 100)}else{window.deckyHasLoaded = true;(async()=>{try{await import('http://localhost:1337/frontend/index.js?v=%s')}catch(e){console.error(e)};})();}}catch(e){console.error(e)}" % (get_loader_version(), ), False, False, False)
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user