Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/SantaClaas/shore.
Something went wrong. Try again.
1234567891011const parser = new DOMParser();export default async function getDocument(url: URL) { const response = await fetch(url); // Do not care about status code. A bad request might still contain icon metadata const text = await response.text(); const document = parser.parseFromString(text, "text/html"); await new Promise((resolve) => setTimeout(resolve, 3_000)); console.debug("Loaded", url); return document;}