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: add images only for pro users (#6528)
Ammar Ahmed6db1cf5cc1cb
diff --git a/packages/clipper/src/index.ts b/packages/clipper/src/index.tsindex 86508d363..c57d9f664 100644--- a/packages/clipper/src/index.ts+++ b/packages/clipper/src/index.ts@@ -38,7 +38,7 @@ const BLACKLIST = [CLASSES.nodeSelected, CLASSES.nodeSelectionContainer];const inlineOptions: InlineOptions = {fonts: false,- images: true,+ images: false,stylesheets: true};@@ -198,7 +198,11 @@ function enterNodeSelectionMode(doc: Document, config?: Config) {const inlined = await getInlinedNode(node as HTMLElement, {raster: false,fetchOptions: resolveFetchOptions(config),- inlineOptions+ inlineOptions: {+ ...inlineOptions,+ images: config?.images,+ inlineImages: config?.inlineImages+ }});if (!inlined) continue;div.appendChild(inlined);