2026-09-11 19:12:58 +00:00
|
|
|
// Module ID: 14580
|
|
|
|
|
// Function ID: 14581
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: RpcCommandInterception
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [2]
|
|
|
|
|
// Exports: interceptRpcCommand, setRpcCommandInterceptor
|
|
|
|
|
|
2026-09-11 19:12:58 +00:00
|
|
|
// Module 14580 (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
|
|
|
|
|
|
|
|
export function setRpcCommandInterceptor(arg0) {
|
2026-09-10 05:38:07 +00:00
|
|
|
global = arg0;
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|