Improve context menu

This commit is contained in:
2025-08-23 20:32:22 +03:00
Unverified
parent 320c6bbe95
commit b939067114
6 changed files with 135 additions and 111 deletions
+2 -2
View File
@@ -45,12 +45,12 @@ export function addMessage(message: Message, isAuthor: boolean): void {
profileImg.src = message.profile_picture || defaultAvatar;
profileImg.alt = message.username;
let errorLock = false
let errorLock = false;
profileImg.addEventListener("error", () => {
if (!errorLock) {
profileImg.src = defaultAvatar;
errorLock = true
errorLock = true;
}
});