simplify
This commit is contained in:
1 parent
58d3e58759
commit
c09e018bc5
4 files changed
+50
-44
No files matched your search
@@ -149,10 +149,10 @@ body_class %}layout-wide{% endblock %}{% block content %}
|
||||
|
||||
if (mode === "jumblang") {
|
||||
try {
|
||||
const response = await fetch("/api/extract/jumblang", {
|
||||
const response = await fetch("/api/extract/plaintext", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ text: content }),
|
||||
headers: { "Content-Type": "text/plain" },
|
||||
body: content,
|
||||
});
|
||||
if (!response.ok) throw new Error("Extraction failed");
|
||||
links = await response.json();
|
||||
|
||||
Reference in new issue
Block a user