diff options
| author | Jieiku | 2022-06-15 22:18:25 -0700 |
|---|---|---|
| committer | Jieiku | 2022-06-15 22:18:25 -0700 |
| commit | 13cb5a1d3a4fef9b6a9296a20e70f80fb7d336ed (patch) | |
| tree | f86f1bdf141310a3cc711e10ba4ab55dea37938e /static/codecopy.js | |
| parent | e5272628ab4c1cddee015cfd1f25b6c3f9f41754 (diff) | |
| download | abridge-1.0.0.tar.gz abridge-1.0.0.tar.bz2 abridge-1.0.0.zip | |
Fix Code Copy Button for non numbered blocks1.0.0
Diffstat (limited to 'static/codecopy.js')
| -rw-r--r-- | static/codecopy.js | 4 |
1 files changed, 2 insertions, 2 deletions
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" }); |
