diff --git a/docs/github-btn.html b/docs/github-btn.html index 652f8f6..7f7b36e 100644 --- a/docs/github-btn.html +++ b/docs/github-btn.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/js.js b/src/js.js index 1f7767f..d7e70fe 100644 --- a/src/js.js +++ b/src/js.js @@ -110,11 +110,11 @@ if (v === '2') { mainButton.classList.add('github-watchers'); text.textContent = 'Watch'; - counter.href = `${REPO_URL}/watchers`; + counter.href = REPO_URL; } else { mainButton.classList.add('github-stargazers'); text.textContent = 'Star'; - counter.href = `${REPO_URL}/stargazers`; + counter.href = REPO_URL; } title = `${text.textContent} ${USER_REPO}`; @@ -124,7 +124,7 @@ case 'star': { mainButton.classList.add('github-stargazers'); text.textContent = 'Star'; - counter.href = `${REPO_URL}/stargazers`; + counter.href = REPO_URL; title = `${text.textContent} ${USER_REPO}`; break; }