From 3b92398abd2926ace4e6a18a7ef204bc22ff51cc Mon Sep 17 00:00:00 2001 From: James P Date: Sun, 21 Apr 2024 09:01:49 -0500 Subject: [PATCH] Added default indexedDB factory to IndexedDBStore.create --- src/IndexedDB.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IndexedDB.ts b/src/IndexedDB.ts index cbd86da..4c79db0 100644 --- a/src/IndexedDB.ts +++ b/src/IndexedDB.ts @@ -79,7 +79,7 @@ export class IndexedDBTransaction implements AsyncTransaction { } export class IndexedDBStore implements AsyncStore { - public static async create(storeName: string, indexedDB: IDBFactory): Promise { + public static async create(storeName: string, indexedDB: IDBFactory = globalThis.indexedDB): Promise { const req: IDBOpenDBRequest = indexedDB.open(storeName, 1); req.onupgradeneeded = () => {