Force text/plain mimetype when copying request code (#7321)

* Force text/plain mimetype when copying requests

* chore: lint

---------

Co-authored-by: Austen Adler <agadler@austenadler.com>
This commit is contained in:
austenadler
2026-02-27 03:41:04 -05:00
committed by GitHub
parent 7a652503b6
commit 27e22bd857

View File

@@ -44,6 +44,7 @@ const CodeView = ({ language, item }) => {
<StyledWrapper>
<CopyToClipboard
text={snippet}
options={{ format: 'text/plain' }}
onCopy={() => toast.success('Copied to clipboard!')}
>
<button className="copy-to-clipboard">