diff --git a/util/gh-pages/script.js b/util/gh-pages/script.js index b095f6ef1..4bff22598 100644 --- a/util/gh-pages/script.js +++ b/util/gh-pages/script.js @@ -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);