Skip to content

Commit 73b23ea

Browse files
committed
fix: update getIsSymlink method to use class check for symlink icon (Closes #133)
1 parent f8c0ced commit 73b23ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/providers/github.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ export default function github(): Provider {
5656
icon.classList.contains('octicon-file-directory-open-fill') ||
5757
icon.classList.contains('icon-directory'),
5858
getIsSubmodule: ({ icon }) =>
59-
icon.getAttribute('aria-label') === 'Submodule',
59+
icon.classList.contains('octicon-file-submodule'),
6060
getIsSymlink: ({ icon }) =>
61-
icon.getAttribute('aria-label') === 'Symlink Directory',
61+
icon.classList.contains('octicon-file-symlink-file'),
6262
replaceIcon: (svgEl, newSVG) => {
6363
svgEl
6464
.getAttributeNames()

0 commit comments

Comments
 (0)