Skip to content

Commit 4e2ea82

Browse files
Update isOrganizationRepo to use getAttribute
1 parent 13c822e commit 4e2ea82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ TEST: addTests('isNotifications', [
187187
export const isOrganizationProfile = (): boolean => exists('meta[name="hovercard-subject-tag"][content^="organization"]');
188188

189189
// TODO: Remove the second check after June 2026
190-
export const isOrganizationRepo = (): boolean => Boolean($<HTMLElement>('qbsearch-input')?.dataset.currentOrg) || exists('.AppHeader-context-full [data-hovercard-type="organization"]');
190+
export const isOrganizationRepo = (): boolean => Boolean($('qbsearch-input')?.getAttribute('data-current-org')) || exists('.AppHeader-context-full [data-hovercard-type="organization"]');
191191

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

0 commit comments

Comments
 (0)