Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
26 lines
636 B
TypeScript
26 lines
636 B
TypeScript
// Module ID: 12660
|
|
// Function ID: 12661
|
|
// Name: RpcCommandInterception
|
|
// Dependencies: [2]
|
|
// Exports: interceptRpcCommand, setRpcCommandInterceptor
|
|
|
|
// Module 12660 (RpcCommandInterception)
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let global = null;
|
|
const result = size.fileFinishedImporting("modules/rpc/RpcCommandInterception.tsx");
|
|
|
|
export function setRpcCommandInterceptor(answerFor) {
|
|
global = answerFor;
|
|
}
|
|
export const interceptRpcCommand = function interceptRpcCommand(framebus) {
|
|
if (null == global) {
|
|
return null;
|
|
} else {
|
|
try {
|
|
return global(framebus);
|
|
} catch (err) {
|
|
return tmp;
|
|
}
|
|
}
|
|
};
|