From fd64c1cf2d71215d9b47446c41bdc80e999856e9 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Thu, 12 Jun 2025 12:10:01 +0500 Subject: [PATCH] clipper: set downloaded stylesheet as html instead of text --- packages/clipper/src/styles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/clipper/src/styles.ts b/packages/clipper/src/styles.ts index 1eea8a7b6..747a34725 100644 --- a/packages/clipper/src/styles.ts +++ b/packages/clipper/src/styles.ts @@ -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) {