2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 12448
|
|
|
|
|
// Function ID: 12449
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: RpcCommandInterception
|
|
|
|
|
// Dependencies: [2]
|
|
|
|
|
// Exports: interceptRpcCommand, setRpcCommandInterceptor
|
|
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 12448 (RpcCommandInterception)
|
2026-09-18 19:45:33 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
let global = null;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/rpc/RpcCommandInterception.tsx");
|
|
|
|
|
|
2026-09-21 13:40:21 +00:00
|
|
|
export function setRpcCommandInterceptor(answerFor) {
|
|
|
|
|
global = answerFor;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
export const interceptRpcCommand = function interceptRpcCommand(framebus) {
|
|
|
|
|
if (null == global) {
|
|
|
|
|
return null;
|
|
|
|
|
} else {
|
|
|
|
|
try {
|
|
|
|
|
return global(framebus);
|
|
|
|
|
} catch (err) {
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|