Skip to content

Commit

Permalink
Add search pages to hasCode (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng committed Mar 20, 2022
1 parent d530f8e commit c0385b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,8 @@ collect.set('hasCode', combinedTestOnly);
export const hasCode = (url: URL | HTMLAnchorElement | Location = location): boolean => // Static code, not the editor
hasComments(url)
|| isRepoTree(url) // Readme files
|| isRepoSearch(url)
|| isGlobalSearchResults(url)
|| isSingleFile(url)
|| isGist(url)
|| isCompare(url)
Expand Down

0 comments on commit c0385b8

Please sign in to comment.