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.
isEmptyRepoRoot
1 parent 7d91bb9 commit 73d7b28Copy full SHA for 73d7b28
index.ts
@@ -247,7 +247,8 @@ collect.set('isRepo', [
247
'https://github.com/sindresorhus/refined-github/issues/templates/edit', // Gotcha for isRepoIssueList
248
]);
249
250
-export const isEmptyRepoRoot = (): boolean => isRepoRoot() && exists('.blankslate');
+// On empty repos, there's only isRepoHome; this element is found in `<head>`
251
+export const isEmptyRepoRoot = (): boolean => isRepoHome() && !exists('link[rel="canonical"]');
252
253
export const isEmptyRepo = (): boolean => exists('[aria-label="Cannot fork because repository is empty."]');
254
0 commit comments