Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: track visit after splash screen is gone

thecodrr97f898bd5539
diff --git a/apps/web/src/index.js b/apps/web/src/index.js
index cc2f9427c..9b5e28b8b 100644
--- a/apps/web/src/index.js
+++ b/apps/web/src/index.js
@@ -6,7 +6,6 @@ import { trackVisit } from "./utils/analytics";
if (process.env.NODE_ENV === "production") {
console.log = () => {};
- trackVisit();
}
initializeDatabase().then(() => {
@@ -14,6 +13,7 @@ initializeDatabase().then(() => {
import("./App").then(({ default: App }) => {
render(<App />, document.getElementById("root"), () => {
document.getElementById("splash").remove();
+ trackVisit();
import("react-modal").then(({ default: Modal }) => {
Modal.setAppElement("#root");
});