fix: ts
This commit is contained in:
parent
4ab9396e29
commit
e64b78239c
3 changed files with 376 additions and 170 deletions
|
@ -28,8 +28,9 @@ import Layout from "../layouts/Layout.astro";
|
|||
|
||||
<script>
|
||||
document.getElementById("discord-btn").onclick = function () {
|
||||
document.getElementById("discord-modal").showModal();
|
||||
let inp = document.getElementById("discord-inp")!;
|
||||
const modal: any = document.getElementById("discord-modal")
|
||||
modal.showModal();
|
||||
let inp: any = document.getElementById("discord-inp")!;
|
||||
inp.focus();
|
||||
inp.select();
|
||||
document.execCommand("copy");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue