From b7e7d6ba8bcda029962fff8caa03bf16e7c3082d Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Thu, 23 Jul 2020 10:44:07 +0200 Subject: [PATCH] Change let to const --- assets/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scripts.js b/assets/scripts.js index ce8da89..d5e5df9 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -251,7 +251,7 @@ async function displayProfile(opts) { // Fill in various data document.body.querySelector('#profileName').innerHTML = userData.name; 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.title = `${userData.name} - Keyoxide`;