Skip to content

Commit c63f7e5

Browse files
committed
Merge branch '0xfeeddeadbeef-patch-1'
2 parents 0cde868 + 4575ca2 commit c63f7e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/inject.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ const getAPIData = (uri, callback) => {
112112
const getFileName = (text) => text.trim().split('/')[0]
113113

114114
const checkForRepoPage = () => {
115-
const repoURI = window.location.pathname.substring(1)
115+
let repoURI = window.location.pathname.substring(1)
116+
repoURI = repoURI.endsWith('/') ? repoURI.slice(0, -1) : repoURI
116117

117118
if (isTree(repoURI)) {
118119
const ns = document.querySelector('ul.numbers-summary')

0 commit comments

Comments
 (0)