mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 10:54:06 -06:00
Move const assignment
This commit is contained in:
parent
051d5a0934
commit
4cff705548
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user