open links in new tab

This commit is contained in:
Hugh Rundle 2024-02-11 16:42:13 +11:00
parent 896152fe9b
commit 787ac0e85b
Signed by: hugh
GPG key ID: A7E35779918253F9

View file

@ -117,7 +117,7 @@
for (let lib of libraries) { for (let lib of libraries) {
const li = document.createElement('li') const li = document.createElement('li')
if (lib.url) { if (lib.url) {
li.innerHTML = `<a href="${lib.url}">${lib.name}</a>` li.innerHTML = `<a target="_blank" href="${lib.url}" rel="noopener noreferrer">${lib.name}</a>`
} else { } else {
li.innerText = lib.name li.innerText = lib.name
} }