indexeddb init
This commit is contained in:
1 parent
fd7849c0b8
commit
80de65f577
4 files changed
+22
-2
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import { openDB } from "idb";
|
||||
|
||||
export const dbPromise = openDB("icalPWA", 1, {
|
||||
upgrade(db) {
|
||||
db.createObjectStore("events", { keyPath: "id" });
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user