Fix typos

This commit is contained in:
oxalica 2024-08-31 22:39:09 -04:00
parent 42a778bef2
commit 263c0ca44b
6 changed files with 11 additions and 11 deletions

View file

@ -90,10 +90,10 @@ async function generateKeypair() {
joinRoomBtn.disabled = false;
try {
const ser = (k) => crypto.subtle.exportKey('jwk', k);
const serialize = (k) => crypto.subtle.exportKey('jwk', k);
localStorage.setItem('keypair', JSON.stringify({
publicKey: await ser(keypair.publicKey),
privateKey: await ser(keypair.privateKey),
publicKey: await serialize(keypair.publicKey),
privateKey: await serialize(keypair.privateKey),
}));
} catch (e) {
console.error(e);