innerHTML -> textContent

This commit is contained in:
Serial 2022-05-18 15:01:02 -04:00
parent 27fec01fa8
commit 8aae26b227

View File

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