mirror of
https://github.com/AMNatty/Mastodon-Circles.git
synced 2024-11-28 05:57:24 -07:00
Minor fixes
This commit is contained in:
parent
c444f4be3d
commit
ea7a442b22
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue