From d36d890dad7f27e46a4e500aef3fc3bbdbfc46c4 Mon Sep 17 00:00:00 2001 From: Kieran Date: Mon, 27 Nov 2023 14:32:39 +0000 Subject: [PATCH] feat: add indexedDb cache system --- src/main.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.tsx b/src/main.tsx index 8e79845..8e5e69d 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -9,8 +9,12 @@ import { SnortContext } from "@snort/system-react"; import { ProfilePage } from "./page/profile"; import { NewPage } from "./page/new"; import { TorrentPage } from "./page/torrent"; +import { SnortSystemDb } from "@snort/system-web"; -const System = new NostrSystem({}); +const db = new SnortSystemDb(); +const System = new NostrSystem({ + db +}); const Routes = [ { element: ,