codePreviews: remove spoiler markdown from links smh
This commit is contained in:
parent
460dd83d42
commit
b665eb9e02
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ function unindent(str) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function processFile(link, spoiler = false) {
|
async function processFile(link, spoiler = false) {
|
||||||
|
link = link.replaceAll("||", "").trim();
|
||||||
const res = await fetch(link);
|
const res = await fetch(link);
|
||||||
if (!res.ok) return "";
|
if (!res.ok) return "";
|
||||||
if (!res.headers.get("Content-Type").startsWith("text/plain")) return "";
|
if (!res.headers.get("Content-Type").startsWith("text/plain")) return "";
|
||||||
|
|
Loading…
Reference in a new issue