Move const assignment

This commit is contained in:
Emile Bangma 2025-03-27 17:51:03 +00:00 committed by GitHub
parent 051d5a0934
commit 4cff705548
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,8 +41,8 @@ document.addEventListener("nav", () => {
document.addEventListener("nav", () => {
const els = document.querySelectorAll("a[role=anchor]")
for (let i = 0; i < els.length; i++) {
const anchorLink = `${window.location.href}${els[i].getAttribute("href")}`
if (els[i].getAttribute("href")) {
const anchorLink = `${window.location.href}${els[i].getAttribute("href")}`
const svgAnchor = els[i].innerHTML
function onClick() {
navigator.clipboard.writeText(anchorLink).then(