From a0b80f0134c86e7e58071b3d9c4e595274858e6e Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 25 Dec 2017 17:31:02 -0800 Subject: [PATCH] Fix Tinyboard file parsing on Firefox. --- src/site/SW.tinyboard.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/site/SW.tinyboard.coffee b/src/site/SW.tinyboard.coffee index a50568ee2..5deb89d01 100644 --- a/src/site/SW.tinyboard.coffee +++ b/src/site/SW.tinyboard.coffee @@ -104,7 +104,7 @@ SW.tinyboard = parseFile: (post, file) -> {text, link, thumb} = file - return false if $.x("ancestor::#{Site.xpath.postContainer}", text) isnt post.nodes.root # file belongs to a reply + return false if $.x("ancestor::#{Site.xpath.postContainer}[1]", text) isnt post.nodes.root # file belongs to a reply return false if not (infoNode = link.nextElementSibling) return false if not (info = infoNode.textContent.match /\((Spoiler Image, )?([\d.]+ [KMG]?B).*\)/) nameNode = $ '.postfilename', text