summaryrefslogtreecommitdiff
path: root/frontend/src/developer.tsx
diff options
context:
space:
mode:
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() {