nyazoom/dist/scripts/link.js

6 lines
171 B
JavaScript
Raw Normal View History

2023-07-27 08:40:01 -07:00
function clipboard() {
let copyText = document.getElementById("link");
navigator.clipboard?.writeText(copyText.href).then(() => alert("Copied: " + copyText.href));
}