This commit is contained in:
Leandro Facchinetti 2021-03-15 00:04:23 +00:00
parent a29c23c86d
commit 3ed532ff22
1 changed files with 4 additions and 4 deletions

View File

@ -224,11 +224,11 @@ export default function killTheNewsletter(
type="button"
onclick="${javascript`
(async () => {
await navigator.clipboard.writeText("\${copyable.innerText}");
const originalInnerText = this.innerText;
this.innerText = "Copied";
await navigator.clipboard.writeText("\${copyable.textContent}");
const originalTextContent = this.textContent;
this.textContent = "Copied";
await new Promise(resolve => window.setTimeout(resolve, 500));
this.innerText = originalInnerText;
this.textContent = originalTextContent;
})();
`}"
>