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: bypass onboarding dialog during debug & tests
Abdullah Atta973417ce2c1a
diff --git a/apps/web/src/components/dialogs/onboarding-dialog.js b/apps/web/src/components/dialogs/onboarding-dialog.jsindex 052425135..db92060c2 100644--- a/apps/web/src/components/dialogs/onboarding-dialog.js+++ b/apps/web/src/components/dialogs/onboarding-dialog.js@@ -40,6 +40,7 @@ import AccentItem from "../accent-item";import { useCallback, useState } from "react";import Config from "../../utils/config";import { getAllAccents } from "@notesnook/theme";+import { isTesting } from "../../utils/platform";const newUserSteps = [{@@ -121,6 +122,8 @@ const onboarding = {};export function interruptedOnboarding() {+ if (process.env.NODE_ENV === "development" || isTesting()) return;+for (let key in onboarding) {const index = Config.get(key, undefined);if (index >= 0 && index < onboarding[key].length - 1) return key;