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 = [
138
138
'https://github.com/sindresorhus/refined-github/releases/new'
139
139
] ;
140
140
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' ;
142
142
export 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'
147
144
] ;
148
145
149
146
export const isOrganizationProfile = ( ) : boolean => select . exists ( 'meta[name="hovercard-subject-tag"][content^="organization"]' ) ;
@@ -240,7 +237,6 @@ export const _isEditingFile = [
240
237
241
238
export const isRepo = ( ) : boolean => / ^ [ ^ / ] + \/ [ ^ / ] + / . test ( getCleanPathname ( ) ) &&
242
239
! reservedNames . includes ( getOwnerAndRepo ( ) . ownerName ! ) &&
243
- ! isNotifications ( ) &&
244
240
! isDashboard ( ) &&
245
241
! isGist ( ) &&
246
242
! isRepoSearch ( ) ;
You can’t perform that action at this time.
0 commit comments