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 }); };