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
fix: cannot read properties of null (reading "webContents") (fixes streetwriters/notesnook#227)
thecodrr54936706ebaa
diff --git a/apps/web/desktop/ipc/utils.js b/apps/web/desktop/ipc/utils.jsindex 5bd2a4d39..a24a073d6 100644--- a/apps/web/desktop/ipc/utils.js+++ b/apps/web/desktop/ipc/utils.js@@ -5,7 +5,7 @@ const path = require("path");function sendMessageToRenderer(type, payload = {}) {const message = { type, ...payload };logger.info("Sending message to renderer", message);- global.win.webContents.send("fromMain", message);+ if (global.win) global.win.webContents.send("fromMain", message);}function resolvePath(_path) {