mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-20 21:49:32 +01:00
clipper: fix build error
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
@@ -42,7 +42,7 @@ async function getInlinedNode(node: HTMLElement, options: Options) {
|
|||||||
|
|
||||||
let clone = cloneNode(node, {
|
let clone = cloneNode(node, {
|
||||||
images,
|
images,
|
||||||
styles: options.styles
|
styles: stylesheets
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!clone || clone instanceof Text) return;
|
if (!clone || clone instanceof Text) return;
|
||||||
|
|||||||
@@ -477,7 +477,6 @@ async function getPage(
|
|||||||
images: config?.images,
|
images: config?.images,
|
||||||
stylesheets: config?.styles
|
stylesheets: config?.styles
|
||||||
},
|
},
|
||||||
styles: config?.styles,
|
|
||||||
filter: (node) => {
|
filter: (node) => {
|
||||||
return !onlyVisible || isElementInViewport(node);
|
return !onlyVisible || isElementInViewport(node);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user