From a59209a40f5efbfb313225ad6dbc831ed731321d Mon Sep 17 00:00:00 2001 From: Andrew Zambazos Date: Sun, 18 Jan 2026 15:55:22 +1300 Subject: [PATCH] Hide tab favicon on image load error Adds an onerror handler to tab favicon images to hide them if the favicon fails to load, improving the appearance of tabs with missing or broken favicon URLs. --- renderer/script.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/renderer/script.js b/renderer/script.js index f0c40e9..933d4d0 100644 --- a/renderer/script.js +++ b/renderer/script.js @@ -1029,6 +1029,9 @@ function renderTabs() { const icon = document.createElement('img'); icon.src = tab.favicon; icon.className = 'tab-favicon'; + icon.onerror = function() { + this.style.display = 'none'; + }; el.appendChild(icon); }