Fixed diff bug

This commit is contained in:
Eduard Urbach 2017-07-08 23:57:40 +02:00
parent 1f4dc0a05d
commit e929451c88

View File

@ -47,8 +47,13 @@ export class Diff {
let elemA = a as HTMLElement
let elemB = b as HTMLElement
// Skip iframes and lazy loaded images
if(elemA.tagName === "IFRAME" || elemA.classList.contains("lazy")) {
// Skip iframes
if(elemA.tagName === "IFRAME") {
continue
}
// Ignore lazy images if they have the same source
if(elemA.classList.contains("lazy") && elemA.dataset.src === elemB.dataset.src) {
continue
}