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
desktop: handle `MAC_APP_STORE` is not defined error
Abdullah Atta8a19fd8de5af
diff --git a/apps/web/desktop/preload.js b/apps/web/desktop/preload.jsindex cd62d0b84..eaa103587 100644--- a/apps/web/desktop/preload.js+++ b/apps/web/desktop/preload.js@@ -19,8 +19,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.const { contextBridge, ipcRenderer } = require("electron");-// eslint-disable-next-line no-undef-contextBridge.exposeInMainWorld("os", MAC_APP_STORE ? "mas" : process.platform);+let isMacAppStore =+ // eslint-disable-next-line no-undef+ process.env.NODE_ENV === "production" ? MAC_APP_STORE : false;+contextBridge.exposeInMainWorld("os", isMacAppStore ? "mas" : process.platform);// Expose protected methods that allow the renderer process to use// the ipcRenderer without exposing the entire object