Skip to content

Commit f92d888

Browse files
authored
Add isBlank (#116)
1 parent c0385b8 commit f92d888

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
@@ -340,6 +340,8 @@ export const isEmptyRepoRoot = (): boolean => isRepoHome() && !exists('link[rel=
340340

341341
export const isEmptyRepo = (): boolean => exists('[aria-label="Cannot fork because repository is empty."]');
342342

343+
export const isBlank = (): boolean => exists('main .blankslate');
344+
343345
export const isRepoTaxonomyConversationList = (url: URL | HTMLAnchorElement | Location = location): boolean => /^labels\/.+|^milestones\/\d+(?!\/edit)/.test(getRepo(url)?.path!);
344346
collect.set('isRepoTaxonomyConversationList', [
345347
'https://github.com/sindresorhus/refined-github/labels/bug',

0 commit comments

Comments
 (0)