Skip to content

Commit 3b07373

Browse files
fixes and improvements
1 parent 6110369 commit 3b07373

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,11 @@ TEST: addTests('isNotifications', [
186186

187187
export const isOrganizationProfile = (): boolean => exists('meta[name="hovercard-subject-tag"][content^="organization"]');
188188

189-
// TODO: Remove the second check after June 2026
190-
export const isOrganizationRepo = (): boolean => Boolean($('qbsearch-input')?.getAttribute('data-current-org')) || exists('.AppHeader-context-full [data-hovercard-type="organization"]');
189+
export const isOrganizationRepo = (): boolean => exists([
190+
'qbsearch-input[data-current-repository]:not([data-current-repository=""])[data-current-org]:not([data-current-org=""])',
191+
// TODO: Remove after June 2026
192+
'.AppHeader-context-full [data-hovercard-type="organization"]',
193+
].join(','));
191194

192195
export const isTeamDiscussion = (url: URL | HTMLAnchorElement | Location = location): boolean => Boolean(getOrg(url)?.path.startsWith('teams'));
193196
TEST: addTests('isTeamDiscussion', [

0 commit comments

Comments
 (0)