We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0789b85 commit f2bbce3Copy full SHA for f2bbce3
js/copy-to-llm.js
@@ -363,7 +363,10 @@
363
const slug = getPageSlug();
364
365
const { text, status } = await fetchMarkdown(slug);
366
- if (text) {
+
367
+ if (status === 404) {
368
+ showToast(NO_MARKDOWN_MESSAGE);
369
+ } else if (text) {
370
copySucceeded = await copyToClipboard(
371
text,
372
copyButton,
@@ -372,8 +375,6 @@
375
if (!copySucceeded) {
373
376
showCopyError(copyButton);
374
377
}
- } else if (status === 404) {
- showToast(NO_MARKDOWN_MESSAGE);
378
} else {
379
380
@@ -500,4 +501,4 @@
500
501
502
initialize();
503
-})();
504
+})();
0 commit comments