From b89bfa0de5f869cbab94a787cbd9ce868503b75e Mon Sep 17 00:00:00 2001 From: Chalarangelo Date: Tue, 11 Jan 2022 09:48:23 +0200 Subject: [PATCH] Update copy to clipboard --- snippets/copyToClipboard.md | 4 ++-- snippets/copyToClipboardAsync.md | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 snippets/copyToClipboardAsync.md diff --git a/snippets/copyToClipboard.md b/snippets/copyToClipboard.md index f0dee0e1a..5d427206e 100644 --- a/snippets/copyToClipboard.md +++ b/snippets/copyToClipboard.md @@ -2,7 +2,7 @@ title: copyToClipboard tags: browser,string,event,advanced firstSeen: 2017-12-31T11:40:33+02:00 -lastUpdated: 2021-10-13T19:29:39+02:00 +lastUpdated: 2022-01-11T09:32:04+02:00 --- Copies a string to the clipboard. @@ -13,7 +13,7 @@ Only works as a result of user action (i.e. inside a `click` event listener). - Use `Document.execCommand('copy')` to copy to the clipboard. - Remove the `