Skip to content

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

feat: initialize database on startup

thecodrr72db48f9f6dc
diff --git a/apps/web/src/index.js b/apps/web/src/index.js
index bf9a2d18b..673dd298c 100644
--- a/apps/web/src/index.js
+++ b/apps/web/src/index.js
@@ -4,7 +4,8 @@ import "./index.css";
import App from "./App";
import * as serviceWorker from "./serviceWorker";
import Modal from "react-modal";
-
+import { db } from "./common";
+db.init();
Modal.setAppElement("#root");
ReactDOM.render(<App />, document.getElementById("root"));
diff --git a/apps/web/yarn.lock b/apps/web/yarn.lock
index 4f1733a7b..6d31231d4 100644
--- a/apps/web/yarn.lock
+++ b/apps/web/yarn.lock
@@ -6996,7 +6996,7 @@ normalize-url@^3.0.0, normalize-url@^3.0.1:
"notes-core@https://github.com/thecodrr/notes-core.git":
version "0.2.0"
- resolved "https://github.com/thecodrr/notes-core.git#281414d69b6bdc73b70e5347745ce8b797b55991"
+ resolved "https://github.com/thecodrr/notes-core.git#0077b011b5d049653f62d5d27055a356bc84aada"
dependencies:
fast-filter "^1.0.4"
fuzzysearch "^1.0.3"