From 15dfc84f21ce423fcaf826fa237552bac0ed4048 Mon Sep 17 00:00:00 2001 From: Matteo Manzinello Date: Mon, 6 May 2019 19:08:31 +0200 Subject: [PATCH] timeout per copy --- src/mailgo.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mailgo.js b/src/mailgo.js index da137dc..a0a842c 100644 --- a/src/mailgo.js +++ b/src/mailgo.js @@ -256,6 +256,9 @@ function mailgoInit() { function(event) { copyToClipboard(mail); copy.innerHTML = "copied!"; + let timeout = setTimeout(() => { + copy.innerHTML = "copy"; + }, 999); }, false );