fix: don't nest in a data property with exchangeCommunicationKeys

This commit is contained in:
Derrick Hammer 2023-09-11 08:10:41 -04:00
parent d0d4e53672
commit d7663d0ff5
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 3 deletions

View File

@ -86,9 +86,10 @@ async function login(key: Uint8Array) {
return;
}
let pubKeyRet = await newBootloaderQuery("exchangeCommunicationKeys", {
data: bytesToHex(x25519.getPublicKey(privKey)),
});
let pubKeyRet = await newBootloaderQuery(
"exchangeCommunicationKeys",
bytesToHex(x25519.getPublicKey(privKey)),
);
if (pubKeyRet[1]) {
alert(`Failed to login: could not get communication key: ${pubKeyRet[1]}`);