File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
browser-extension/src/lib/enhancers/github Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export class GitHubIssueAddCommentEnhancer implements CommentEnhancer<GitHubIssu
1717 }
1818
1919 tryToEnhance ( _textarea : HTMLTextAreaElement ) : GitHubIssueAddCommentSpot | null {
20- if ( window . location . hostname !== 'github.com' ) {
20+ if ( window . location . hostname !== 'github.com' || _textarea . id !== ':r2v:' ) {
2121 return null
2222 }
2323
@@ -50,7 +50,7 @@ export class GitHubIssueAddCommentEnhancer implements CommentEnhancer<GitHubIssu
5050 autoResize : true ,
5151 minHeight : '100px' ,
5252 padding : 'var(--base-size-16)' ,
53- placeholder : 'Add your comment here... ' ,
53+ placeholder : 'Use Markdown to format your comment' ,
5454 } ) [ 0 ] !
5555 }
5656
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export class GitHubPRAddCommentEnhancer implements CommentEnhancer<GitHubPRAddCo
1818
1919 tryToEnhance ( _textarea : HTMLTextAreaElement ) : GitHubPRAddCommentSpot | null {
2020 // Only handle github.com domains TODO: identify GitHub Enterprise somehow
21- if ( window . location . hostname !== 'github.com' ) {
21+ if ( window . location . hostname !== 'github.com' || _textarea . id !== 'new_comment_field' ) {
2222 return null
2323 }
2424
You can’t perform that action at this time.
0 commit comments