mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-07-08 15:15:33 +00:00
Fix typos
This commit is contained in:
parent
42a778bef2
commit
263c0ca44b
6 changed files with 11 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue