mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
textContent
-> innerHTML
This commit is contained in:
parent
8aae26b227
commit
e05da56d6b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user