File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ collect.set('isDashboard', [
61
61
'https://github.com/?tab=stars' , // Gotcha for `isUserProfileStarsTab`
62
62
'https://github.com/?tab=followers' , // Gotcha for `isUserProfileFollowersTab`
63
63
'https://github.com/?tab=following' , // Gotcha for `isUserProfileFollowingTab`
64
+ 'https://github.com/?tab=overview' , // Gotcha for `isUserProfileMainTab`
64
65
] ) ;
65
66
66
67
export const isEnterprise = ( url : URL | Location = location ) : boolean => url . hostname !== 'github.com' && url . hostname !== 'gist.github.com' ;
@@ -388,8 +389,7 @@ collect.set('isBranches', [
388
389
389
390
export const isUserProfile = ( ) : boolean => exists ( '.user-profile-nav' ) ;
390
391
391
- export const isUserProfileMainTab = ( ) : boolean =>
392
- isUserProfile ( ) && ! new URLSearchParams ( location . search ) . get ( 'tab' ) ;
392
+ export const isUserProfileMainTab = ( ) : boolean => exists ( '[aria-label="User profile"] > .selected:first-child' ) ;
393
393
394
394
export const isUserProfileRepoTab = ( ) : boolean =>
395
395
isUserProfile ( ) &&
You can’t perform that action at this time.
0 commit comments