Skip to content

Commit

Permalink
fix: submodule folder detection (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter authored Jun 22, 2024
1 parent 2acad5e commit b57bf43
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/entries/content/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,7 @@ export async function replaceIcon(icon: HTMLElement, row: HTMLElement) {
icon.classList.contains('folder-icon');
const isSubmodule =
icon.classList.contains('octicon-file-submodule') ||
fileNameEl
.querySelector('a')
?.getAttribute('aria-label')
.includes('(Submodule)');
fileNameEl.getAttribute('aria-label')?.includes('(Submodule)');
const isOpen =
isDir && icon.classList.contains('octicon-file-directory-open-fill');

Expand Down

0 comments on commit b57bf43

Please sign in to comment.