Skip to content

Commit 753b2a9

Browse files
committed
fix: Empty image gallery for BakaTsukiParser
Image Gallery at start of novel had no image tags. Root Cause: Code to cleanup BakaTsuki image galleries was insuffiently robust. See: * #2067 * #2018
1 parent 9952d29 commit 753b2a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugin/js/parsers/BakaTsukiParser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class BakaTsukiParser extends Parser{
236236

237237
let gallery = listItem.parentNode;
238238
garbage.add(gallery);
239-
gallery.parentNode.insertBefore(listItem.firstChild, gallery);
239+
gallery.parentNode.insertBefore(listItem.firstElementChild, gallery);
240240
}
241241

242242
// throw away rest of gallery (note sometimes there are multiple galleries)

0 commit comments

Comments
 (0)