From 69023de9a42e8458264a49e8dd06ba2e09be2de4 Mon Sep 17 00:00:00 2001 From: ATF98 <39845181+atf98@users.noreply.github.com> Date: Sat, 18 Feb 2023 10:21:15 +0300 Subject: [PATCH] fix chrome from copy format (#455) --- src/popup/components/CopyButton.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/popup/components/CopyButton.js b/src/popup/components/CopyButton.js index 01b470e..3a1ce41 100644 --- a/src/popup/components/CopyButton.js +++ b/src/popup/components/CopyButton.js @@ -10,7 +10,8 @@ export default class CopyButton extends Component { this.state = { isCopied: false }; } - handleCopy = () => { + handleCopy = (copiedText) => { + navigator.clipboard.writeText(copiedText); this.setState({ isCopied: true }); };