Fix arrpc

This commit is contained in:
Vendicated 2022-12-03 14:57:51 +01:00
parent d4f70218ba
commit 4d8145f12c
No known key found for this signature in database
GPG Key ID: EC781ADFB93EFFA3

@ -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<string> {
return (await assetManager.getAsset(applicationId, [key, undefined]))[0];
@ -39,7 +39,7 @@ async function lookupAsset(applicationId: string, key: string): Promise<string>
const apps: any = {};
async function lookupApp(applicationId: string): Promise<string> {
const socket: any = {};
await rpcManager.lookupApp(socket, applicationId);
await lookupRpcApp(socket, applicationId);
return socket.application;
}