From 13cb5a1d3a4fef9b6a9296a20e70f80fb7d336ed Mon Sep 17 00:00:00 2001 From: Jieiku Date: Wed, 15 Jun 2022 22:18:25 -0700 Subject: Fix Code Copy Button for non numbered blocks --- static/codecopy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static/codecopy.js') diff --git a/static/codecopy.js b/static/codecopy.js index 4d100a8..f4d9f2b 100644 --- a/static/codecopy.js +++ b/static/codecopy.js @@ -28,10 +28,10 @@ async function ccc(button, highlightDiv) { const items = highlightDiv.querySelectorAll(":last-child > tr > td:last-child"); items.forEach(item => { codeToCopy = codeToCopy + item.innerText; - console.log(codeToCopy); + //console.log(codeToCopy); }); } else { - const codeToCopy = highlightDiv.querySelector(":last-child > code").innerText; + codeToCopy = highlightDiv.querySelector(":last-child > code").innerText; } try { result = await navigator.permissions.query({ name: "clipboard-write" }); -- cgit v1.3.1