Skip to content

Commit

Permalink
fix: disable icon injection on new commit details page
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter committed Dec 17, 2024
1 parent 4773b37 commit 3b12634
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
const GITHUB_SELECTORS = {
row: [
'.js-navigation-container[role=grid] > .js-navigation-item',
// Old commit details and pull request file tree.
'file-tree .ActionList-content',
'a.tree-browser-result',
'.PRIVATE_TreeView-item-content',
// For the inner repository file sidepanel. Extra specificity to avoid matching icons on the new commit details page, which uses the same component.
'ul[aria-label="Files"] .PRIVATE_TreeView-item-content',
'.react-directory-filename-column',
'[aria-label="Parent directory"]',
],
Expand Down

0 comments on commit 3b12634

Please sign in to comment.