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: skip initiation for theme builder
Abdullah Atta1289a025a5d4
diff --git a/apps/web/src/bootstrap.tsx b/apps/web/src/bootstrap.tsxindex 890da158d..aa9833904 100644--- a/apps/web/src/bootstrap.tsx+++ b/apps/web/src/bootstrap.tsx@@ -147,5 +147,5 @@ export async function init() {}function shouldSkipInitiation() {- return localStorage.getItem("skipInitiation") || false;+ return IS_THEME_BUILDER || localStorage.getItem("skipInitiation") || false;}diff --git a/apps/web/src/global.d.ts b/apps/web/src/global.d.tsindex 94be6907c..13c709496 100644--- a/apps/web/src/global.d.ts+++ b/apps/web/src/global.d.ts@@ -30,6 +30,7 @@ declare global {var PLATFORM: "web" | "desktop";var IS_BETA: boolean;var APP_TITLE: string;+ var IS_THEME_BUILDER: boolean;interface Window {os?: () => NodeJS.Platform | "mas";diff --git a/apps/web/src/stores/theme-store.js b/apps/web/src/stores/theme-store.jsindex 2bbdfa067..34b36bc25 100644--- a/apps/web/src/stores/theme-store.js+++ b/apps/web/src/stores/theme-store.js@@ -51,7 +51,7 @@ class ThemeStore extends BaseStore {/*** @param {import("@notesnook/theme").ThemeDefinition} theme*/- setTheme = async (theme) => {+ setTheme = (theme) => {Config.set(`theme:${theme.colorScheme}`, theme);this.set({[getKey(theme)]: theme,diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.tsindex e26912b83..5aa39c055 100644--- a/apps/web/vite.config.ts+++ b/apps/web/vite.config.ts@@ -71,7 +71,8 @@ export default defineConfig({IS_DESKTOP_APP: isDesktop,PLATFORM: `"${process.env.PLATFORM}"`,IS_TESTING: process.env.TEST === "true",- IS_BETA: process.env.BETA === "true"+ IS_BETA: process.env.BETA === "true",+ IS_THEME_BUILDER: isThemeBuilder},logLevel: process.env.NODE_ENV === "production" ? "warn" : "info",resolve: {