mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: detect GitHub enterprise properly
This commit is contained in:
parent
24b8abb3d1
commit
50b452061c
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue