Skip to content

Commit 2a81f10

Browse files
Fix isEmptyRepoRoot
1 parent 6f5d835 commit 2a81f10

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,7 @@ TEST: addTests('isRepo', [
397397
export const hasRepoHeader = (url: URL | HTMLAnchorElement | Location = location): boolean => isRepo(url) && !isRepoSearch(url);
398398
TEST: addTests('hasRepoHeader', combinedTestOnly);
399399

400-
// On empty repos, there's only isRepoHome; this element is found in `<head>`
401-
export const isEmptyRepoRoot = (): boolean => isRepoHome() && !exists('link[rel="canonical"]');
400+
export const isEmptyRepoRoot = (): boolean => isRepoHome() && exists('.blankslate-icon, #empty-setup-clone-url');
402401

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

0 commit comments

Comments
 (0)