A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
clipper: fix error on inlining css background images
Abdullah Attaa81c8d006443
diff --git a/packages/clipper/src/styles.ts b/packages/clipper/src/styles.tsindex 088ab8bbd..25cc308ef 100644--- a/packages/clipper/src/styles.ts+++ b/packages/clipper/src/styles.ts@@ -103,7 +103,7 @@ export async function addStylesToHead(const result = await downloadStylesheet(href, options);if (!result) continue;const cssStylesheet = new CSSStyleSheet();- cssStylesheet.replace(result.innerHTML);+ await cssStylesheet.replace(result.innerHTML);await inlineBackgroundImages(cssStylesheet, options);const toAppend = rulesToStyleNode(cssStylesheet.cssRules);head.appendChild(toAppend);