Skip to content

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

clipper: bg images in css not clipped

Abdullah Attafd460d3e9001
diff --git a/packages/clipper/src/styles.ts b/packages/clipper/src/styles.ts
index d3e544abb..e41040535 100644
--- a/packages/clipper/src/styles.ts
+++ b/packages/clipper/src/styles.ts
@@ -176,7 +176,7 @@ async function processStyleRule(
options?: FetchOptions,
inline = true
) {
- const baseUrl = sheet.href || document.location.origin;
+ const baseUrl = sheet.href || document.location.href;
for (const property of rule.style) {
const oldValue = rule.style.getPropertyValue(property);
const resolved = await inlineAll(oldValue, options, baseUrl, !inline);