This commit is contained in:
parent
a29c23c86d
commit
3ed532ff22
|
@ -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;
|
||||||
})();
|
})();
|
||||||
`}"
|
`}"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue