forked from Mirrors/keyoxide-web
Change let to const
This commit is contained in:
parent
f7446e1725
commit
b7e7d6ba8b
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ async function displayProfile(opts) {
|
||||||
// Fill in various data
|
// Fill in various data
|
||||||
document.body.querySelector('#profileName').innerHTML = userData.name;
|
document.body.querySelector('#profileName').innerHTML = userData.name;
|
||||||
document.body.querySelector('#profileAvatar').style = "";
|
document.body.querySelector('#profileAvatar').style = "";
|
||||||
let profileHash = openpgp.util.str_to_hex(openpgp.util.Uint8Array_to_str(await openpgp.crypto.hash.md5(openpgp.util.str_to_Uint8Array(userData.email))));
|
const profileHash = openpgp.util.str_to_hex(openpgp.util.Uint8Array_to_str(await openpgp.crypto.hash.md5(openpgp.util.str_to_Uint8Array(userData.email))));
|
||||||
document.body.querySelector('#profileAvatar').src = `https://www.gravatar.com/avatar/${profileHash}?s=128&d=mm`;
|
document.body.querySelector('#profileAvatar').src = `https://www.gravatar.com/avatar/${profileHash}?s=128&d=mm`;
|
||||||
document.title = `${userData.name} - Keyoxide`;
|
document.title = `${userData.name} - Keyoxide`;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue