diff options
| author | AAGaming <aa@mail.catvibers.me> | 2022-12-28 12:24:28 -0500 |
|---|---|---|
| committer | AAGaming <aa@mail.catvibers.me> | 2022-12-28 12:24:28 -0500 |
| commit | 385552451b84f0b49312eb466342238fadaaac24 (patch) | |
| tree | 96f1572321ebd4021e4ee957e7564a27fe451211 /backend | |
| parent | c2c9d11c668112c3cf315ceb645fb5fe5f7d6d07 (diff) | |
| download | decky-loader-385552451b84f0b49312eb466342238fadaaac24.tar.gz decky-loader-385552451b84f0b49312eb466342238fadaaac24.zip | |
shut down steam instead of restarting it to avoid broken CEF debugger (gamescope will restart stean for us instead)
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/main.py b/backend/main.py index c144c13a..b6cab774 100644 --- a/backend/main.py +++ b/backend/main.py @@ -176,7 +176,7 @@ class PluginManager: # logger.debug("Closing tab: " + getattr(t, "title", "Untitled")) # await t.close() # await sleep(0.5) - await tab.evaluate_js("try{if (window.deckyHasLoaded){setTimeout(() => SteamClient.User.StartRestart(), 100)}else{window.deckyHasLoaded = true;(async()=>{try{while(!window.SP_REACT){await new Promise(r => setTimeout(r, 10))};await import('http://localhost:1337/frontend/index.js')}catch(e){console.error(e)};})();}}catch(e){console.error(e)}", False, False, False) + await tab.evaluate_js("try{if (window.deckyHasLoaded){setTimeout(() => SteamClient.User.StartShutdown(false), 100)}else{window.deckyHasLoaded = true;(async()=>{try{while(!window.SP_REACT){await new Promise(r => setTimeout(r, 10))};await import('http://localhost:1337/frontend/index.js')}catch(e){console.error(e)};})();}}catch(e){console.error(e)}", False, False, False) except: logger.info("Failed to inject JavaScript into tab\n" + format_exc()) pass |
