diff --git a/src/General/Get.coffee b/src/General/Get.coffee index 90f41bdd8..636d463e9 100755 --- a/src/General/Get.coffee +++ b/src/General/Get.coffee @@ -12,6 +12,7 @@ Get = threadFromNode: (node) -> Get.threadFromRoot $.x 'ancestor::div[@class="thread"]', node postFromRoot: (root) -> + return null unless root? link = $ '.postNum > a[href*="#"]', root boardID = link.pathname.split(/\/+/)[1] postID = link.hash[2..]