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', [
6161 'https://github.com/?tab=stars' , // Gotcha for `isUserProfileStarsTab`
6262 'https://github.com/?tab=followers' , // Gotcha for `isUserProfileFollowersTab`
6363 'https://github.com/?tab=following' , // Gotcha for `isUserProfileFollowingTab`
64+ 'https://github.com/?tab=overview' , // Gotcha for `isUserProfileMainTab`
6465] ) ;
6566
6667export const isEnterprise = ( url : URL | Location = location ) : boolean => url . hostname !== 'github.com' && url . hostname !== 'gist.github.com' ;
@@ -388,8 +389,7 @@ collect.set('isBranches', [
388389
389390export const isUserProfile = ( ) : boolean => exists ( '.user-profile-nav' ) ;
390391
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' ) ;
393393
394394export const isUserProfileRepoTab = ( ) : boolean =>
395395 isUserProfile ( ) &&
You can’t perform that action at this time.
0 commit comments