This commit is contained in:
IndieKKY
2024-10-06 13:46:30 +08:00
parent 3140b91f72
commit 296469ebf1
4 changed files with 5 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ const useMessagingService = (methods?: {
[key: string]: (params: any, context: MethodContext) => Promise<any>
}) => {
const messageHandler = useCallback(async (req: L2ReqMsg): Promise<L2ResMsg> => {
debug(`${req.from} => `, JSON.stringify(req))
debug(`[${req.from}] ${req.method}`, JSON.stringify(req))
// // check event target
// if (req.target !== MESSAGE_TARGET_APP) return {