File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ TEST: addTests('isNotifications', [
187187export 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
192192export const isTeamDiscussion = ( url : URL | HTMLAnchorElement | Location = location ) : boolean => Boolean ( getOrg ( url ) ?. path . startsWith ( 'teams' ) ) ;
193193TEST: addTests ( 'isTeamDiscussion' , [
You can’t perform that action at this time.
0 commit comments