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: use cdn to get sodium.js
thecodrr5518e18e4d55
diff --git a/apps/web/package.json b/apps/web/package.jsonindex 804b8afa5..98038f26e 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -61,7 +61,6 @@"debug": "BROWSER=none react-scripts start","test": "BROWSER= jest --runInBand -c jest.e2e.config.js","eject": "react-scripts eject",- "sodium": "cd public && wget https://github.com/jedisct1/libsodium.js/raw/master/dist/browsers/sodium.js && cd ..","update": "npm i @streetwriters/editor@latest @streetwriters/notesnook-core@latest @streetwriters/theme@latest"},"eslintConfig": {diff --git a/apps/web/public/crypto.worker.js b/apps/web/public/crypto.worker.jsindex 81c5cee87..8ee9745cd 100644--- a/apps/web/public/crypto.worker.js+++ b/apps/web/public/crypto.worker.js@@ -37,7 +37,9 @@ function onMessage(ev) {sendMessage("load", {}, messageId);},};- importScripts("sodium.js");+ importScripts(+ "https://cdn.jsdelivr.net/gh/jedisct1/[email protected]/dist/browsers/sodium.js"+ );break;}default:diff --git a/apps/web/public/index.html b/apps/web/public/index.htmlindex 9019c77bd..8a62a9356 100644--- a/apps/web/public/index.html+++ b/apps/web/public/index.html@@ -61,7 +61,7 @@</body><linkrel="stylesheet"- href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&family=DM+Serif+Text:ital@0;1&display=swap"+ href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,700;1,400;1,700&family=DM+Serif+Text:ital@0;1&display=swap"media="print"onload="this.media='all'; this.onload=null;"/>