Fixed diffs

This commit is contained in:
Eduard Urbach 2017-07-18 11:36:41 +02:00
parent d895f6b89f
commit 36ee661948

View File

@ -48,10 +48,10 @@ export class Diff {
let elemB = b as HTMLElement
// Ignore lazy images if they have the same source
if(elemA.classList.contains("lazy")) {
if(elemA.classList.contains("lazy") && elemB.classList.contains("lazy")) {
if(elemA.dataset.src !== elemB.dataset.src) {
elemA.dataset.src = elemB.dataset.src
elemA.setAttribute("title", elemB.getAttribute("title"))
elemA.title = elemB.title
}
continue
}