From 34d1a34b10f4386865f3c241c5ae4026d2bfd8bd Mon Sep 17 00:00:00 2001
From: AAGaming <aa@mail.catvibers.me>
Date: Sat, 5 Aug 2023 01:11:43 -0400
Subject: Migrate most of frontend callServerMethod usage over to websocket

---
 frontend/src/developer.tsx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'frontend/src/developer.tsx')

diff --git a/frontend/src/developer.tsx b/frontend/src/developer.tsx
index 43f550d7..8bd09812 100644
--- a/frontend/src/developer.tsx
+++ b/frontend/src/developer.tsx
@@ -50,9 +50,7 @@ export async function setShouldConnectToReactDevTools(enable: boolean) {
     icon: <FaReact />,
   });
   await sleep(5000);
-  return enable
-    ? window.DeckyPluginLoader.callServerMethod('enable_rdt')
-    : window.DeckyPluginLoader.callServerMethod('disable_rdt');
+  return enable ? window.DeckyBackend.call('utilities/enable_rdt') : window.DeckyBackend.call('utilities/disable_rdt');
 }
 
 export async function startup() {
-- 
cgit v1.2.3

