2026-09-29 21:26:22 +00:00
|
|
|
// Module ID: 13214
|
|
|
|
|
// Function ID: 13215
|
2026-09-18 20:18:48 +00:00
|
|
|
// Name: RpcCommandInterception
|
|
|
|
|
// Dependencies: [2]
|
|
|
|
|
// Exports: interceptRpcCommand, setRpcCommandInterceptor
|
|
|
|
|
|
2026-09-29 21:26:22 +00:00
|
|
|
// Module 13214 (RpcCommandInterception)
|
2026-09-18 20:18:48 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
let global = null;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/rpc/RpcCommandInterception.tsx");
|
|
|
|
|
|
2026-09-29 21:26:22 +00:00
|
|
|
export function setRpcCommandInterceptor(answerFor) {
|
|
|
|
|
global = answerFor;
|
2026-09-18 20:18:48 +00:00
|
|
|
}
|
|
|
|
|
export const interceptRpcCommand = function interceptRpcCommand(framebus) {
|
|
|
|
|
if (null == global) {
|
|
|
|
|
return null;
|
|
|
|
|
} else {
|
|
|
|
|
try {
|
|
|
|
|
return global(framebus);
|
|
|
|
|
} catch (err) {
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|