2026-10-01 06:55:13 +00:00
|
|
|
// Module ID: 12660
|
|
|
|
|
// Function ID: 12661
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: RpcCommandInterception
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [2]
|
|
|
|
|
// Exports: interceptRpcCommand, setRpcCommandInterceptor
|
|
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
// Module 12660 (RpcCommandInterception)
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
let global = null;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/rpc/RpcCommandInterception.tsx");
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-19 06:52:51 +00:00
|
|
|
export function setRpcCommandInterceptor(answerFor) {
|
|
|
|
|
global = answerFor;
|
2026-08-24 06:08:38 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
export const interceptRpcCommand = function interceptRpcCommand(framebus) {
|
|
|
|
|
if (null == global) {
|
2026-08-24 06:08:38 +00:00
|
|
|
return null;
|
|
|
|
|
} else {
|
|
|
|
|
try {
|
2026-09-10 05:38:07 +00:00
|
|
|
return global(framebus);
|
2026-08-24 06:08:38 +00:00
|
|
|
} catch (err) {
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|