Fix arrpc
This commit is contained in:
parent
d4f70218ba
commit
4d8145f12c
1 changed files with 2 additions and 2 deletions
|
@ -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> {
|
async function lookupAsset(applicationId: string, key: string): Promise<string> {
|
||||||
return (await assetManager.getAsset(applicationId, [key, undefined]))[0];
|
return (await assetManager.getAsset(applicationId, [key, undefined]))[0];
|
||||||
|
@ -39,7 +39,7 @@ async function lookupAsset(applicationId: string, key: string): Promise<string>
|
||||||
const apps: any = {};
|
const apps: any = {};
|
||||||
async function lookupApp(applicationId: string): Promise<string> {
|
async function lookupApp(applicationId: string): Promise<string> {
|
||||||
const socket: any = {};
|
const socket: any = {};
|
||||||
await rpcManager.lookupApp(socket, applicationId);
|
await lookupRpcApp(socket, applicationId);
|
||||||
return socket.application;
|
return socket.application;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue