From 4d8145f12ccbdcb3383387cc435147c62ec1066a Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 3 Dec 2022 14:57:51 +0100 Subject: [PATCH] Fix arrpc --- src/plugins/arRPC.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/arRPC.tsx b/src/plugins/arRPC.tsx index cba3504a..ca94a0ec 100644 --- a/src/plugins/arRPC.tsx +++ b/src/plugins/arRPC.tsx @@ -30,7 +30,7 @@ const assetManager = mapMangledModuleLazy( } ); -const rpcManager = findByCodeLazy(".APPLICATION_RPC("); +const lookupRpcApp = findByCodeLazy(".APPLICATION_RPC("); async function lookupAsset(applicationId: string, key: string): Promise { return (await assetManager.getAsset(applicationId, [key, undefined]))[0]; @@ -39,7 +39,7 @@ async function lookupAsset(applicationId: string, key: string): Promise const apps: any = {}; async function lookupApp(applicationId: string): Promise { const socket: any = {}; - await rpcManager.lookupApp(socket, applicationId); + await lookupRpcApp(socket, applicationId); return socket.application; }