embedded: revert accidental/unfinished qjs change
This commit is contained in:
parent
bac2ac01b8
commit
86e9799ffd
@ -188,9 +188,6 @@ export function installNativeWalletListener(): void {
|
|||||||
const id = msg.id;
|
const id = msg.id;
|
||||||
logger.info(`native listener: got request for ${operation} (${id})`);
|
logger.info(`native listener: got request for ${operation} (${id})`);
|
||||||
|
|
||||||
if (operation === "anastasisReduce") {
|
|
||||||
sendNativeMessage(respMsg);
|
|
||||||
} else {
|
|
||||||
let respMsg: CoreApiResponse;
|
let respMsg: CoreApiResponse;
|
||||||
try {
|
try {
|
||||||
respMsg = await handler.handleMessage(operation, id, msg.args ?? {});
|
respMsg = await handler.handleMessage(operation, id, msg.args ?? {});
|
||||||
@ -206,7 +203,6 @@ export function installNativeWalletListener(): void {
|
|||||||
`native listener: sending back ${respMsg.type} message for operation ${operation} (${id})`,
|
`native listener: sending back ${respMsg.type} message for operation ${operation} (${id})`,
|
||||||
);
|
);
|
||||||
sendNativeMessage(respMsg);
|
sendNativeMessage(respMsg);
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
qjsOs.setMessageFromHostHandler((m) => onMessage(m));
|
qjsOs.setMessageFromHostHandler((m) => onMessage(m));
|
||||||
|
Loading…
Reference in New Issue
Block a user