timeout per copy

This commit is contained in:
Matteo Manzinello committed 2019-05-06 19:08:31 +02:00
1 parent 7c76dcfcbc
commit 15dfc84f21
1 file changed
+3
+3
View File
@@ -256,6 +256,9 @@ function mailgoInit() {
function(event) {
copyToClipboard(mail);
copy.innerHTML = "copied!";
let timeout = setTimeout(() => {
copy.innerHTML = "copy";
}, 999);
},
false
);