From d984fd8dce46e73a32f7db687f3e770471eee8cc Mon Sep 17 00:00:00 2001 From: Zynh0722 Date: Thu, 13 Apr 2023 13:55:22 -0700 Subject: [PATCH] another try --- dist/link.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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)); }