Skip to content

Commit b541523

Browse files
committed
disable the id check in githubIssueAddComment
1 parent 2d4b492 commit b541523

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

browser-extension/src/lib/enhancers/github/githubIssueAddComment.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@ export class GitHubIssueAddCommentEnhancer implements CommentEnhancer<GitHubIssu
1717
}
1818

1919
tryToEnhance(textarea: HTMLTextAreaElement): GitHubIssueAddCommentSpot | null {
20-
if (
21-
document.querySelector('meta[name="hostname"]')?.getAttribute('content') !== 'github.com' ||
22-
textarea.id !== ':r2v:'
23-
) {
20+
if (document.querySelector('meta[name="hostname"]')?.getAttribute('content') !== 'github.com') {
2421
return null
2522
}
2623

24+
logger.debug('THE ID IS ', textarea.id)
25+
2726
// Parse GitHub URL structure: /owner/repo/issues/123 or /owner/repo/pull/456
2827
logger.debug(`${this.constructor.name} examing url`, window.location.pathname)
2928

0 commit comments

Comments
 (0)