Skip to content

Commit

Permalink
revert a bad fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Dec 19, 2024
1 parent bfd3f55 commit b5bf411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tgui/packages/tgui-panel/chat/renderer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const createReconnectedNode = () => {
const handleImageError = (e) => {
setTimeout(() => {
/** @type {HTMLImageElement} */
const node = Byond.BLINK !== null ? e : e.target;
const node = e.target;
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`);
Expand Down

0 comments on commit b5bf411

Please sign in to comment.