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" type="button"
onclick="${javascript` onclick="${javascript`
(async () => { (async () => {
await navigator.clipboard.writeText("\${copyable.innerText}"); await navigator.clipboard.writeText("\${copyable.textContent}");
const originalInnerText = this.innerText; const originalTextContent = this.textContent;
this.innerText = "Copied"; this.textContent = "Copied";
await new Promise(resolve => window.setTimeout(resolve, 500)); await new Promise(resolve => window.setTimeout(resolve, 500));
this.innerText = originalInnerText; this.textContent = originalTextContent;
})(); })();
`}" `}"
> >