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: can't find variable HOST
thecodrr8aa38fdc397e
diff --git a/packages/core/api/index.js b/packages/core/api/index.jsindex 33909e377..7931fd098 100644--- a/packages/core/api/index.js+++ b/packages/core/api/index.js@@ -86,7 +86,7 @@ class Database {user = await this.user.get();}- this.evtSource = new NNEventSource(`${HOST}/events`, {+ this.evtSource = new NNEventSource(`${Constants.HOST}/events`, {headers: { Authorization: `Bearer ${user.accessToken}` },});@@ -117,7 +117,7 @@ class Database {host(host) {if (process.env.NODE_ENV !== "production") {- Constants.HOST = host || HOST;+ Constants.HOST = host || Constants.HOST;}}}