We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isLoggedIn
1 parent 62b20df commit 0bb2aadCopy full SHA for 0bb2aad
index.ts
@@ -19,6 +19,8 @@ export const is500 = (): boolean => document.title === 'Server Error · GitHub'
19
20
export const isPasswordConfirmation = (): boolean => document.title === 'Confirm password' || document.title === 'Confirm access';
21
22
+export const isLoggedIn = (): boolean => exists('body.logged-in');
23
+
24
export const isBlame = (url: URL | HTMLAnchorElement | Location = location): boolean => Boolean(getRepo(url)?.path.startsWith('blame/'));
25
addTests('isBlame', [
26
'https://github.com/sindresorhus/refined-github/blame/master/package.json',
0 commit comments