Fixed image loading bug

This commit is contained in:
2017-07-15 17:07:24 +02:00
parent 1fd9c284de
commit 10709fe25a
2 changed files with 9 additions and 2 deletions

View File

@ -53,7 +53,9 @@ export class Diff {
}
// Ignore lazy images if they have the same source
if(elemA.classList.contains("lazy") && elemA.dataset.src === elemB.dataset.src) {
if(elemA.classList.contains("lazy")) {
elemA.dataset.src = elemB.dataset.src
elemA.title = elemB.title
continue
}