mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-14 20:55:37 -04:00
Reset srcset on failed load.
This commit is contained in:
@@ -7,6 +7,7 @@ var placeholder = StatusModel.get('urlBase') + '/Content/Images/poster-dark.png'
|
||||
window.NzbDrone.imageError = function(img) {
|
||||
if (!img.src.contains(placeholder)) {
|
||||
img.src = placeholder;
|
||||
img.srcset = "";
|
||||
$(img).addClass('placeholder-image');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user