Change let to const

This commit is contained in:
Yarmo Mackenbach 2020-07-23 10:44:07 +02:00
parent f7446e1725
commit b7e7d6ba8b

View file

@ -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`;