decord/beta/source/modules/rpc/RpcCommandInterception.tsx

27 lines
636 B
TypeScript
Raw Normal View History

// Module ID: 12448
// Function ID: 12449
// Name: RpcCommandInterception
// Dependencies: [2]
// Exports: interceptRpcCommand, setRpcCommandInterceptor
// Module 12448 (RpcCommandInterception)
import size from "module_2" /* 2 */;
let global = null;
const result = size.fileFinishedImporting("modules/rpc/RpcCommandInterception.tsx");
export function setRpcCommandInterceptor(answerFor) {
global = answerFor;
}
export const interceptRpcCommand = function interceptRpcCommand(framebus) {
if (null == global) {
return null;
} else {
try {
return global(framebus);
} catch (err) {
return tmp;
}
}
};