mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
innerHTML
-> textContent
This commit is contained in:
parent
27fec01fa8
commit
8aae26b227
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue