We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
window.location.hostname
document.querySelector('meta[name="hostname"]')?.getAttribute('content')
1 parent 751816e commit df73818Copy full SHA for df73818
browser-extension/src/lib/enhancers/github.ts
@@ -30,8 +30,8 @@ export class GitHubAddCommentEnhancer implements CommentEnhancer<GitHubAddCommen
30
}
31
32
tryToEnhance(textarea: HTMLTextAreaElement): [OverTypeInstance, GitHubAddCommentSpot] | null {
33
- // Only handle github.com domains TODO: identify GitHub Enterprise somehow
34
- if (window.location.hostname !== 'github.com') {
+ // Only handle github.com domains - check meta tag for testing compatibility
+ if (document.querySelector('meta[name="hostname"]')?.getAttribute('content') !== 'github.com') {
35
return null
36
37
0 commit comments