From 1c0190b1adcae29d09ba08728b2d23d8e4aa424d Mon Sep 17 00:00:00 2001 From: Isabelle Viktoria Maciohsek Date: Sun, 30 Jan 2022 18:30:53 +0200 Subject: [PATCH] Update formatting --- snippets/copyToClipboardAsync.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/copyToClipboardAsync.md b/snippets/copyToClipboardAsync.md index d2086413c..8d29d4f8d 100644 --- a/snippets/copyToClipboardAsync.md +++ b/snippets/copyToClipboardAsync.md @@ -10,7 +10,7 @@ Copies a string to the clipboard, returning a promise that resolves when the cli - Use `Clipboard.writeText()` to write the given value, `str`, to the clipboard. - Return the result of `Clipboard.writeText()`, which is a promise that resolves when the clipboard's contents have been updated. - In case that the Clipboard API is not available, use `Promise.reject()` to reject with an appropriate message. -- **Note:** If you need to support older browsers, you might want to use `Document.execCommand('copy')` instead. You can find out more about it in the [copyToClipboard snippet](/js/s/copy-to-clipboard). +- **Note:** If you need to support older browsers, you might want to use `Document.execCommand()` instead. You can find out more about it in the [copyToClipboard snippet](/js/s/copy-to-clipboard). ```js const copyToClipboardAsync = str => {