clipper: set downloaded stylesheet as html instead of text

This commit is contained in:
Abdullah Atta
2025-06-12 12:10:01 +05:00
parent 48e2916874
commit fd64c1cf2d

View File

@@ -54,7 +54,7 @@ async function downloadStylesheet(href: string, options?: FetchOptions) {
const style = document.createElement("style");
const response = await fetch(constructUrl(href, options));
if (!response.ok) return false;
style.innerText = await response.text();
style.innerHTML = await response.text();
style.setAttribute("href", href);
return style;
} catch (e) {