diff options
| author | AAGaming <aagaming@riseup.net> | 2024-07-28 18:19:11 -0400 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2024-08-03 14:04:20 -0400 |
| commit | 4c23549748e71c061ea2fc1f8fa9262f15018cfc (patch) | |
| tree | 830a9aaec2b1e5067665bb57a5bf3853a59e4cd8 /backend/decky_loader/main.py | |
| parent | 7b21e81caa748bd0031cdf37e701a01e36ffa5ca (diff) | |
| download | decky-loader-4c23549748e71c061ea2fc1f8fa9262f15018cfc.tar.gz decky-loader-4c23549748e71c061ea2fc1f8fa9262f15018cfc.zip | |
workaround python throw on webhelper restarts
Diffstat (limited to 'backend/decky_loader/main.py')
| -rw-r--r-- | backend/decky_loader/main.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/decky_loader/main.py b/backend/decky_loader/main.py index f31fd32a..a07a01c0 100644 --- a/backend/decky_loader/main.py +++ b/backend/decky_loader/main.py @@ -207,6 +207,7 @@ class PluginManager: await tab.close_websocket() self.js_ctx_tab = None await restart_webhelper() + await sleep(1) 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) except: |
