decord/source/modules/rpc/RpcCommandInterception.tsx

27 lines
626 B
TypeScript
Raw Normal View History

// Module ID: 14580
// Function ID: 14581
// Name: RpcCommandInterception
2026-08-24 06:08:38 +00:00
// Dependencies: [2]
// Exports: interceptRpcCommand, setRpcCommandInterceptor
// Module 14580 (RpcCommandInterception)
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
let global = null;
const result = size.fileFinishedImporting("modules/rpc/RpcCommandInterception.tsx");
2026-08-24 06:08:38 +00:00
export function setRpcCommandInterceptor(arg0) {
global = arg0;
2026-08-24 06:08:38 +00:00
}
export const interceptRpcCommand = function interceptRpcCommand(framebus) {
if (null == global) {
2026-08-24 06:08:38 +00:00
return null;
} else {
try {
return global(framebus);
2026-08-24 06:08:38 +00:00
} catch (err) {
return tmp;
}
}
};