diff options
| author | AAGaming <aagaming@riseup.net> | 2023-12-30 21:32:23 -0500 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2023-12-30 21:32:23 -0500 |
| commit | 40c7c1b515abf4abcecd6480afb28f27fb71d0f0 (patch) | |
| tree | 576399085651b6e7cb0c37876ed6c2b3d0452dd7 /frontend/src/developer.tsx | |
| parent | 70104065e2145e9a04fef4ae28ec9875a6114e2d (diff) | |
| download | decky-loader-40c7c1b515abf4abcecd6480afb28f27fb71d0f0.tar.gz decky-loader-40c7c1b515abf4abcecd6480afb28f27fb71d0f0.zip | |
port updater to ws, also small refactoring
Diffstat (limited to 'frontend/src/developer.tsx')
| -rw-r--r-- | frontend/src/developer.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/developer.tsx b/frontend/src/developer.tsx index ad5d8a40..99e9890b 100644 --- a/frontend/src/developer.tsx +++ b/frontend/src/developer.tsx @@ -38,7 +38,7 @@ export async function setShowValveInternal(show: boolean) { } export async function setShouldConnectToReactDevTools(enable: boolean) { - window.DeckyPluginLoader.toaster.toast({ + DeckyPluginLoader.toaster.toast({ title: enable ? ( <TranslationHelper trans_class={TranslationClass.DEVELOPER} trans_text={'enabling'} /> ) : ( @@ -48,7 +48,7 @@ export async function setShouldConnectToReactDevTools(enable: boolean) { icon: <FaReact />, }); await sleep(5000); - return enable ? window.DeckyBackend.call('utilities/enable_rdt') : window.DeckyBackend.call('utilities/disable_rdt'); + return enable ? DeckyBackend.call('utilities/enable_rdt') : DeckyBackend.call('utilities/disable_rdt'); } export async function startup() { |
