summaryrefslogtreecommitdiff
path: root/frontend/src/developer.tsx
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2023-12-30 21:32:23 -0500
committerAAGaming <aagaming@riseup.net>2023-12-30 21:32:23 -0500
commit40c7c1b515abf4abcecd6480afb28f27fb71d0f0 (patch)
tree576399085651b6e7cb0c37876ed6c2b3d0452dd7 /frontend/src/developer.tsx
parent70104065e2145e9a04fef4ae28ec9875a6114e2d (diff)
downloaddecky-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.tsx4
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() {