Fixes TGchat BSOD on 516 (#28616)

* Initial Commit

* I am dumb
This commit is contained in:
Burzah
2025-03-30 22:48:17 +00:00
committed by GitHub
parent e261e35907
commit e75ace18a2
4 changed files with 6 additions and 2 deletions
@@ -72,6 +72,9 @@ const handleImageError = (e) => {
setTimeout(() => {
/** @type {HTMLImageElement} */
const node = e.target;
if (!node) {
return;
}
const attempts = parseInt(node.getAttribute('data-reload-n'), 10) || 0;
if (attempts >= IMAGE_RETRY_LIMIT) {
logger.error(`failed to load an image after ${attempts} attempts`);
@@ -15,6 +15,7 @@ img {
img.icon {
height: 1em;
min-height: 16px;
min-width: 16px;
width: auto;
vertical-align: bottom;
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long