Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

clipper: skip style inlining if property not present Signed-off-by: 01zulfi <[email protected]>

01zulfi879a65a41c61
diff --git a/packages/clipper/src/styles.ts b/packages/clipper/src/styles.ts
index e41040535..088ab8bbd 100644
--- a/packages/clipper/src/styles.ts
+++ b/packages/clipper/src/styles.ts
@@ -179,6 +179,7 @@ async function processStyleRule(
const baseUrl = sheet.href || document.location.href;
for (const property of rule.style) {
const oldValue = rule.style.getPropertyValue(property);
+ if (!oldValue) continue;
const resolved = await inlineAll(oldValue, options, baseUrl, !inline);
rule.style.setProperty(property, resolved);
}