File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
browser-extension/src/lib/enhancers/github Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ export class GitHubIssueAddCommentEnhancer implements CommentEnhancer<GitHubIssu
2020 return [ 'GH_ISSUE_ADD_COMMENT' ]
2121 }
2222
23- tryToEnhance ( _textarea : HTMLTextAreaElement ) : GitHubIssueAddCommentSpot | null {
23+ tryToEnhance ( textarea : HTMLTextAreaElement ) : GitHubIssueAddCommentSpot | null {
24+ if ( textarea . id === 'feedback' ) {
25+ return null
26+ }
2427 if ( document . querySelector ( 'meta[name="hostname"]' ) ?. getAttribute ( 'content' ) !== 'github.com' ) {
2528 return null
2629 }
@@ -31,6 +34,7 @@ export class GitHubIssueAddCommentEnhancer implements CommentEnhancer<GitHubIssu
3134 const match = window . location . pathname . match ( / ^ \/ ( [ ^ / ] + ) \/ ( [ ^ / ] + ) (?: \/ i s s u e s \/ ( \d + ) ) / )
3235 logger . debug ( `${ this . constructor . name } found match` , window . location . pathname )
3336 if ( ! match ) return null
37+
3438 const [ , owner , repo , numberStr ] = match
3539 const slug = `${ owner } /${ repo } `
3640 const number = parseInt ( numberStr ! , 10 )
You can’t perform that action at this time.
0 commit comments