fix: don't nest in a data property with exchangeCommunicationKeys
This commit is contained in:
parent
d0d4e53672
commit
d7663d0ff5
|
@ -86,9 +86,10 @@ async function login(key: Uint8Array) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let pubKeyRet = await newBootloaderQuery("exchangeCommunicationKeys", {
|
let pubKeyRet = await newBootloaderQuery(
|
||||||
data: bytesToHex(x25519.getPublicKey(privKey)),
|
"exchangeCommunicationKeys",
|
||||||
});
|
bytesToHex(x25519.getPublicKey(privKey)),
|
||||||
|
);
|
||||||
|
|
||||||
if (pubKeyRet[1]) {
|
if (pubKeyRet[1]) {
|
||||||
alert(`Failed to login: could not get communication key: ${pubKeyRet[1]}`);
|
alert(`Failed to login: could not get communication key: ${pubKeyRet[1]}`);
|
||||||
|
|
Loading…
Reference in New Issue