From ea7a442b22521616144c85fb3eded9746ef8ec3c Mon Sep 17 00:00:00 2001 From: Natty Date: Fri, 1 Sep 2023 18:03:36 +0200 Subject: [PATCH] Minor fixes --- create-circle.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/create-circle.js b/create-circle.js index 98664ad..89538d7 100644 --- a/create-circle.js +++ b/create-circle.js @@ -839,7 +839,7 @@ function showConnections(localUser, connectionList) { if (fingeredHandle.profileUrl) window.open(fingeredHandle.profileUrl, "_blank"); else - alert("Could not the profile URL for " + fingeredHandle.baseHandle); + alert("Could not fetch the profile URL for " + fingeredHandle.baseHandle); }; const newUserHost = document.createElement("span"); @@ -849,10 +849,10 @@ function showConnections(localUser, connectionList) { const newUserImg = document.createElement("img"); newUserImg.src = items[i].avatar; - newUserImg.title = newUserImg.alt = stripName(items[i].name || items[i].handle.name) + "'s avatar"; + newUserImg.alt = ""; newUserImg.className = "userImg"; - newUserImg.onerror = () => { - newUserImg.alt = ""; + newUserImg.onload = () => { + newUserImg.title = newUserImg.alt = stripName(items[i].name || items[i].handle.name) + "'s avatar"; }; newUser.prepend(newUserImg);