File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -138,12 +138,9 @@ export const _isNewRelease = [
138138 'https://github.com/sindresorhus/refined-github/releases/new'
139139] ;
140140
141- export const isNotifications = ( ) : boolean => / ^ ( (?: [ ^ / ] + \/ ) { 2 } ) ? n o t i f i c a t i o n s / . test ( getCleanPathname ( ) ) ;
141+ export const isNotifications = ( ) : boolean => getCleanPathname ( ) === 'notifications' ;
142142export const _isNotifications = [
143- 'https://github.com/notifications' ,
144- 'https://github.com/notifications/participating' ,
145- 'https://github.com/sindresorhus/notifications/notifications' ,
146- 'https://github.com/notifications?all=1'
143+ 'https://github.com/notifications'
147144] ;
148145
149146export const isOrganizationProfile = ( ) : boolean => select . exists ( 'meta[name="hovercard-subject-tag"][content^="organization"]' ) ;
@@ -240,7 +237,6 @@ export const _isEditingFile = [
240237
241238export const isRepo = ( ) : boolean => / ^ [ ^ / ] + \/ [ ^ / ] + / . test ( getCleanPathname ( ) ) &&
242239 ! reservedNames . includes ( getOwnerAndRepo ( ) . ownerName ! ) &&
243- ! isNotifications ( ) &&
244240 ! isDashboard ( ) &&
245241 ! isGist ( ) &&
246242 ! isRepoSearch ( ) ;
You can’t perform that action at this time.
0 commit comments