Skip to content

Commit c0385b8

Browse files
authored
Add search pages to hasCode (#114)
1 parent d530f8e commit c0385b8

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
@@ -596,6 +596,8 @@ collect.set('hasCode', combinedTestOnly);
596596
export const hasCode = (url: URL | HTMLAnchorElement | Location = location): boolean => // Static code, not the editor
597597
hasComments(url)
598598
|| isRepoTree(url) // Readme files
599+
|| isRepoSearch(url)
600+
|| isGlobalSearchResults(url)
599601
|| isSingleFile(url)
600602
|| isGist(url)
601603
|| isCompare(url)

0 commit comments

Comments
 (0)