mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: support older versions of Github Enterprise (#289)
fix: support older versions of Github Enterprise --------- Co-authored-by: Enix <enixcoda@gmail.com>
This commit is contained in:
parent
15ba9c22e6
commit
9a3b11e738
1 changed files with 4 additions and 1 deletions
|
|
@ -75,7 +75,10 @@ export function isEnterprise() {
|
|||
* </a>
|
||||
*/
|
||||
$(
|
||||
'a.Header-link[aria-label="Homepage Enterprise"]',
|
||||
[
|
||||
'a.Header-link[aria-label="Homepage Enterprise"]',
|
||||
'a.Header-link[aria-label="Homepage"]', // legacy support
|
||||
].join(),
|
||||
e => e.textContent?.trim() === 'Enterprise',
|
||||
)) ||
|
||||
false
|
||||
|
|
|
|||
Loading…
Reference in a new issue