mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-23 19:49:56 +01:00
clipper: set downloaded stylesheet as html instead of text
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user