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 = () => {