Skip to content

Commit fb72705

Browse files
authored
Fix isBlank false positives (#169)
1 parent 8b05571 commit fb72705

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ export const isPublicRepo = (): boolean => exists('meta[name="octolytics-dimensi
366366

367367
export const isArchivedRepo = (): boolean => Boolean(isRepo() && $('main > .flash-warn')?.textContent!.includes('archived'));
368368

369-
export const isBlank = (): boolean => exists('main .blankslate');
369+
export const isBlank = (): boolean => exists('main .blankslate:not([hidden] .blankslate)');
370370

371371
export const isRepoTaxonomyIssueOrPRList = (url: URL | HTMLAnchorElement | Location = location): boolean => /^labels\/.+|^milestones\/\d+(?!\/edit)/.test(getRepo(url)?.path!);
372372
addTests('isRepoTaxonomyIssueOrPRList', [

0 commit comments

Comments
 (0)