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:
@@ -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
|
||||
}
|
||||
|
||||
// ----------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user