We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0cde868 + 4575ca2 commit c63f7e5Copy full SHA for c63f7e5
src/inject.js
@@ -112,7 +112,8 @@ const getAPIData = (uri, callback) => {
112
const getFileName = (text) => text.trim().split('/')[0]
113
114
const checkForRepoPage = () => {
115
- const repoURI = window.location.pathname.substring(1)
+ let repoURI = window.location.pathname.substring(1)
116
+ repoURI = repoURI.endsWith('/') ? repoURI.slice(0, -1) : repoURI
117
118
if (isTree(repoURI)) {
119
const ns = document.querySelector('ul.numbers-summary')
0 commit comments