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: show platform specific announcements
thecodrr37eacd37833a
diff --git a/apps/web/src/utils/useAnnouncement.js b/apps/web/src/utils/useAnnouncement.jsindex 2a5a490df..626d3f219 100644--- a/apps/web/src/utils/useAnnouncement.js+++ b/apps/web/src/utils/useAnnouncement.js@@ -12,8 +12,6 @@ export default function useAnnouncement() {(async function () {try {CACHED_ANNOUNCEMENT = CACHED_ANNOUNCEMENT || (await db.announcement());--} catch (e) {console.error(e);} finally {@@ -35,7 +33,7 @@ export default function useAnnouncement() {return [announcement, remove];}-const allowedPlatforms = ["all", "web", "desktop"];+const allowedPlatforms = ["all", process.env.REACT_APP_PLATFORM];function shouldShowAnnouncement(announcement) {let show = allowedPlatforms.indexOf(announcement.platform) > -1;if (!show) return;