8000 Suppress error when not writing reply. · cpluspluscom/EnhancedCpp.com@687e74f · GitHub
[go: up one dir, main page]

Skip to content

Commit 687e74f

Browse files
author
Ronak Gajrawala
committed
Suppress error when not writing reply.
1 parent 6bd83d1 commit 687e74f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

js/enumerate.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ function RunPageEdit() {
22
var isEditablePage = 0;
33
do {
44
// Can I reply? (aka Can I quote a post?)
5-
var canReply = +(document.querySelector('#CH_subscription > form > select').children.length > 2);
6-
var currentTopic = document.location.pathname;
5+
try {
6+
var canReply = +(document.querySelector('#CH_subscription > form > select').children.length > 2);
7+
var currentTopic = document.location.pathname;
8+
} catch (e) {
9+
continue;
10+
}
711

812
// Parse Topic ID
913
{

0 commit comments

Comments
 (0)
0