From 96c083187d0ba7dd98e72be2cda911bb713ad575 Mon Sep 17 00:00:00 2001 From: Matteo Manzinello Date: Tue, 17 Sep 2019 00:32:54 +0200 Subject: [PATCH] hide also in copy --- src/mailgo.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mailgo.js b/src/mailgo.js index 0da90b9..53fc404 100644 --- a/src/mailgo.js +++ b/src/mailgo.js @@ -520,7 +520,10 @@ const actions = { ? (copyButton = getE("mailgo-copy")) : (copyButton = getE("mailgo-tel-copy")); copyButton.textContent = "copied"; - setTimeout(() => (copyButton.textContent = "copy"), 999); + setTimeout(() => { + copyButton.textContent = "copy"; + hideMailgo(); + }, 999); } };