From 9a3b11e73807f957c3fc636416d55f3054b8e91f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B1=B3=E7=A9=BA=E6=A0=BC?= Date: Wed, 26 Apr 2023 23:15:39 +0800 Subject: [PATCH] fix: support older versions of Github Enterprise (#289) fix: support older versions of Github Enterprise --------- Co-authored-by: Enix --- src/platforms/GitHub/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/platforms/GitHub/index.ts b/src/platforms/GitHub/index.ts index c16f809..2b37de3 100644 --- a/src/platforms/GitHub/index.ts +++ b/src/platforms/GitHub/index.ts @@ -75,7 +75,10 @@ export function isEnterprise() { * */ $( - '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