Skip to content

Commit 7026257

Browse files
committed
patch error handling
1 parent f2bbce3 commit 7026257

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

js/copy-to-llm.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,10 +372,9 @@
372372
copyButton,
373373
'markdown_content'
374374
);
375-
if (!copySucceeded) {
376-
showCopyError(copyButton);
377-
}
378-
} else {
375+
}
376+
377+
if (!text || !copySucceeded) {
379378
showCopyError(copyButton);
380379
}
381380

0 commit comments

Comments
 (0)