File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,11 @@ TEST: addTests('isNotifications', [
186186
187187export 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+ export const isOrganizationRepo = ( ) : boolean => exists ( [
190+ 'qbsearch-input[data-current-repository][data-current-org]:not([data-current-repository=""], [data-current-org=""])' ,
191+ // TODO: Remove after June 2026
192+ '.AppHeader-context-full [data-hovercard-type="organization"]' ,
193+ ] . join ( ',' ) ) ;
190194
191195export const isTeamDiscussion = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => Boolean ( getOrg ( url ) ?. path . startsWith ( 'teams' ) ) ;
192196TEST: addTests ( 'isTeamDiscussion' , [
You can’t perform that action at this time.
0 commit comments