mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
Add backticks around error message copy
This commit is contained in:
parent
a9da1dada4
commit
1343d7f907
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ export function ErrorCard(props: { error: DisplayError | string }) {
|
|||
|
||||
function copyError() {
|
||||
if (!props.error || !navigator.clipboard) return;
|
||||
navigator.clipboard.writeText(errorMessage);
|
||||
navigator.clipboard.writeText(`\`\`\`${errorMessage}\`\`\``);
|
||||
|
||||
setHasCopied(true);
|
||||
|
||||
|
|
Loading…
Reference in a new issue