Skip to content

Commit 0fa1190

Browse files
committed
Fixed working on contact page
1 parent 556ffcc commit 0fa1190

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Github_Comment_Enhancer/Github_Comment_Enhancer.user.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,9 +750,11 @@
750750
return sponsored;
751751
}
752752

753-
function removeGitHubToolbar(commentForm) {console.log(commentForm);
753+
function removeGitHubToolbar(commentForm) {
754754
var toolbar = commentForm.parentNode.parentNode.querySelector(".toolbar-commenting");
755-
toolbar.parentNode.replaceChild(addSponsorLink(), toolbar);
755+
if (toolbar) {
756+
toolbar.parentNode.replaceChild(addSponsorLink(), toolbar);
757+
}
756758
}
757759

758760
function commentFormKeyEvent(commentForm, e) {

0 commit comments

Comments
 (0)