Skip to content

Commit b6cf645

Browse files
committed
reddit: guard missing shreddit-comment-tree
1 parent 7a00387 commit b6cf645

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

reddit.com/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ onBrowse(() => {
5959

6060
until(() => {
6161
const tree = document.querySelector("shreddit-comment-tree");
62-
if (tree.scrollHeight > 0) {
62+
if (tree && tree.scrollHeight > 0) {
6363
return tree;
6464
}
6565
}, run_it);

0 commit comments

Comments
 (0)