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
web: reset restricted features on app startup
Abdullah Atta240d9b533f8b
diff --git a/apps/web/src/app-effects.tsx b/apps/web/src/app-effects.tsxindex 3ec2174fb..44b489a42 100644--- a/apps/web/src/app-effects.tsx+++ b/apps/web/src/app-effects.tsx@@ -28,7 +28,7 @@ import {scheduleBackups,scheduleFullBackups} from "./common/notices";-import { introduceFeatures } from "./common";+import { introduceFeatures, resetFeatures } from "./common";import { AppEventManager, AppEvents } from "./common/app-events";import { db } from "./common/db";import { EV, EVENTS } from "@notesnook/core";@@ -59,6 +59,7 @@ export default function AppEffects() {initEditorStore();(async function () {+ await resetFeatures();await refreshNavItems();await updateLastSynced();await initUser();diff --git a/apps/web/src/common/index.ts b/apps/web/src/common/index.tsindex 5be53afd0..e32f5dc9f 100644--- a/apps/web/src/common/index.ts+++ b/apps/web/src/common/index.ts@@ -502,7 +502,7 @@ export function withFeatureCheck<TId extends FeatureId>(};}-async function resetFeatures() {+export async function resetFeatures() {const features = await areFeaturesAvailable(["customHomepage","customToolbarPreset",