Reset srcset on failed load.

pull/2/head
Taloth Saldono 9 years ago
parent 90b5947a19
commit 4fc150f77b

@ -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');
}

Loading…
Cancel
Save