Skip to content

Commit 63da633

Browse files
authored
Add isPasswordConfirmation (#77)
1 parent 5947005 commit 63da633

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export const is404 = (): boolean => document.title === 'Page not found · GitHub
1515

1616
export const is500 = (): boolean => document.title === 'Server Error · GitHub' || document.title === 'Unicorn! · GitHub' || document.title === '504 Gateway Time-out';
1717

18+
export const isPasswordConfirmation = (): boolean => document.title === 'Confirm password' || document.title === 'Confirm access';
19+
1820
export const isBlame = (url: URL | HTMLAnchorElement | Location = location): boolean => Boolean(getRepo(url)?.path.startsWith('blame/'));
1921
collect.set('isBlame', [
2022
'https://github.com/sindresorhus/refined-github/blame/master/package.json',

0 commit comments

Comments
 (0)