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
web: fix attachFile- when saving web clip
Abdullah Attaf1a6662f0113
diff --git a/apps/web/src/utils/web-extension-server.ts b/apps/web/src/utils/web-extension-server.tsindex 10792c208..864614800 100644--- a/apps/web/src/utils/web-extension-server.ts+++ b/apps/web/src/utils/web-extension-server.ts@@ -28,10 +28,10 @@ import { isUserPremium } from "../hooks/use-is-user-premium";import { store as appstore } from "../stores/app-store";import { h } from "./html";import { sanitizeFilename } from "@notesnook/common";-import { attachFile } from "../components/editor/picker";import { getFormattedDate } from "@notesnook/common";import { useStore as useThemeStore } from "../stores/theme-store";import { isCipher } from "@notesnook/core/dist/database/crypto";+import { attachFiles } from "../components/editor/picker";export class WebExtensionServer implements Server {async login() {@@ -85,7 +85,7 @@ export class WebExtensionServer implements Server {});- const attachment = await attachFile(clippedFile);+ const attachment = (await attachFiles([clippedFile]))?.at(0);if (!attachment) return;clipContent += h("iframe", [], {