textContent -> innerHTML

This commit is contained in:
Serial 2022-05-18 15:37:05 -04:00
parent 8aae26b227
commit e05da56d6b

View file

@ -262,16 +262,16 @@
const clipboard = document.getElementById("clipboard-" + lint.id);
if (clipboard) {
let resetClipboardTimeout = null;
let resetClipboardIcon = clipboard.textContent;
let resetClipboardIcon = clipboard.innerHTML;
function resetClipboard() {
resetClipboardTimeout = null;
clipboard.textContent = resetClipboardIcon;
clipboard.innerHTML = resetClipboardIcon;
}
navigator.clipboard.writeText("clippy::" + lint.id);
clipboard.textContent = "✓";
clipboard.innerHTML = "✓";
if (resetClipboardTimeout !== null) {
clearTimeout(resetClipboardTimeout);
}