another try
This commit is contained in:
parent
3fb93e3598
commit
d984fd8dce
1 changed files with 1 additions and 3 deletions
4
dist/link.html
vendored
4
dist/link.html
vendored
|
@ -27,9 +27,7 @@
|
||||||
function clipboard() {
|
function clipboard() {
|
||||||
let copyText = document.getElementById("link");
|
let copyText = document.getElementById("link");
|
||||||
|
|
||||||
navigator.clipboard.writeText(copyText.href);
|
navigator.clipboard.writeText(copyText.href).then(() => alert("Copied: " + copyText.href));
|
||||||
|
|
||||||
alert("Copied: " + copyText.href);
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue