Do not detach img load error handler

once gone but the image fails later, the UI is broken without a refresh
The fallback icon should always load
This commit is contained in:
Johannes Zellner
2022-09-28 15:27:52 +02:00
parent c957949a0a
commit 377766eee6

View File

@@ -225,7 +225,6 @@ const BACKUP_FORMATS = [
// ----------------------------------------------
function imageErrorHandler(elem) {
elem.src = elem.getAttribute('fallback-icon');
elem.onerror = null; // avoid retry after default icon cannot be loaded
}
// ----------------------------------------------