mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 04:51:16 +08:00
Patched copy to clipboard logic
This commit is contained in:
parent
6703b3a0c6
commit
e3077e9c6d
1 changed files with 1 additions and 5 deletions
|
@ -309,7 +309,6 @@
|
|||
</a>
|
||||
</p>
|
||||
|
||||
<!-- FIXME: Fix username copy -->
|
||||
<div class="tooltip" onclick="copyUserName()">
|
||||
Discord: Miodec#1512
|
||||
<span class="tooltiptext">Click to copy</span>
|
||||
|
@ -317,10 +316,7 @@
|
|||
|
||||
<script>
|
||||
function copyUserName() {
|
||||
const text = "Miodec#1512";
|
||||
text.select();
|
||||
text.setSelectionRange(0, 99999);
|
||||
document.execCommand("copy");
|
||||
navigator.clipboard.writeText("Miodec#1512");
|
||||
alert("Copied To Clipboard!");
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue