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 6f5d835 commit 2a81f10Copy full SHA for 2a81f10
index.ts
@@ -397,8 +397,7 @@ TEST: addTests('isRepo', [
397
export const hasRepoHeader = (url: URL | HTMLAnchorElement | Location = location): boolean => isRepo(url) && !isRepoSearch(url);
398
TEST: addTests('hasRepoHeader', combinedTestOnly);
399
400
-// On empty repos, there's only isRepoHome; this element is found in `<head>`
401
-export const isEmptyRepoRoot = (): boolean => isRepoHome() && !exists('link[rel="canonical"]');
+export const isEmptyRepoRoot = (): boolean => isRepoHome() && exists('.blankslate-icon, #empty-setup-clone-url');
402
403
export const isEmptyRepo = (): boolean => exists('[aria-label="Cannot fork because repository is empty."]');
404
0 commit comments