Skip to content

Commit ce6b640

Browse files
committed
fix: don't _blank the latest version link
1 parent 53307ce commit ce6b640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Bash builtin `noclobber` e.g. `set -o noclobber` along with `--interactive` for
210210
(async () => {
211211
const response = await fetch(`https://api.github.com/repos/pinjasaur/bic/releases`)
212212
const releases = await response.json()
213-
document.querySelectorAll(`.js-release`).forEach($el => $el.innerHTML = `<a href="${releases[0].html_url}" target="_blank">${releases[0].tag_name}</a>`)
213+
document.querySelectorAll(`.js-release`).forEach($el => $el.innerHTML = `<a href="${releases[0].html_url}">${releases[0].tag_name}</a>`)
214214
document.querySelectorAll(`code`).forEach($el => $el.innerHTML = $el.innerHTML.replace(`bic:latest`, `bic:${releases[0].tag_name.replace(/^v/, '')}`))
215215
})();
216216
</script>

0 commit comments

Comments
 (0)