diff --git a/dist/link.html b/dist/link.html
index 5c7230b..6839930 100644
--- a/dist/link.html
+++ b/dist/link.html
@@ -27,9 +27,7 @@
function clipboard() {
let copyText = document.getElementById("link");
- navigator.clipboard.writeText(copyText.href);
-
- alert("Copied: " + copyText.href);
+ navigator.clipboard.writeText(copyText.href).then(() => alert("Copied: " + copyText.href));
}