Do not start ImageHandle for images with [data-anki]

This commit is contained in:
Henrik Giesel 2021-08-04 20:52:55 +02:00
parent 7950078e2b
commit 167370fcb7

View file

@ -70,7 +70,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
continue;
}
if (node.tagName === "IMG") {
if (node.tagName === "IMG" && !(node as HTMLElement).dataset.anki) {
result.push(node as HTMLImageElement);
} else {
result.push(...filterImages(node.children));