Skip to content

Commit d44217b

Browse files
committed
Drop obsolete Notification paths from tests
1 parent 12b56d5 commit d44217b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

source/index.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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})?notifications/.test(getCleanPathname());
141+
export const isNotifications = (): boolean => getCleanPathname() === 'notifications';
142142
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'
147144
];
148145

149146
export const isOrganizationProfile = (): boolean => select.exists('meta[name="hovercard-subject-tag"][content^="organization"]');
@@ -240,7 +237,6 @@ export const _isEditingFile = [
240237

241238
export const isRepo = (): boolean => /^[^/]+\/[^/]+/.test(getCleanPathname()) &&
242239
!reservedNames.includes(getOwnerAndRepo().ownerName!) &&
243-
!isNotifications() &&
244240
!isDashboard() &&
245241
!isGist() &&
246242
!isRepoSearch();

0 commit comments

Comments
 (0)