mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
[profile] #290 generic rel=me (links table) - favicon timeout
This commit is contained in:
parent
47fbb7968d
commit
716fa8195f
@ -61,7 +61,9 @@ class LinkAnalyser {
|
||||
|
||||
try {
|
||||
const fallback = new URL('/favicon.ico', url);
|
||||
const res = await fetch(fallback);
|
||||
const controller = new AbortController();
|
||||
const timeout = setTimeout(() => controller.abort(), 1000);
|
||||
const res = await fetch(fallback, {signal: controller.signal});
|
||||
if (res.ok) {
|
||||
return fallback;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user