Skip to content

Commit

Permalink
fix: detect GitHub enterprise properly
Browse files Browse the repository at this point in the history
  • Loading branch information
EnixCoda committed Jul 18, 2022
1 parent 24b8abb commit 50b4520
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/platforms/GitHub/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ export function isEnterprise() {
* <span>Enterprise</span>
* </a>
*/
$('a.Header-link[aria-label="Homepage Enterprise"]', e => e.textContent === 'Enterprise')) ||
$(
'a.Header-link[aria-label="Homepage Enterprise"]',
e => e.textContent?.trim() === 'Enterprise',
)) ||
false
)
}
Expand Down

0 comments on commit 50b4520

Please sign in to comment.