mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Do not start ImageHandle for images with [data-anki]
This commit is contained in:
parent
7950078e2b
commit
167370fcb7
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue