Skip to content

Commit b3284c2

Browse files
Fix isOrganizationRepo
1 parent 93d0102 commit b3284c2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

index.ts

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

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

189-
export const isOrganizationRepo = (): boolean => exists('.AppHeader-context-full [data-hovercard-type="organization"]');
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"]');
190191

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

0 commit comments

Comments
 (0)