diff --git a/utils/indexedDB.js b/utils/indexedDB.js index dcdd3de..3cc0c01 100644 --- a/utils/indexedDB.js +++ b/utils/indexedDB.js @@ -1,6 +1,7 @@ import { openDB } from "idb"; // utils/indexedDB.js -const dbPromise = openDB("my-pdf-store", 1, { +// Erhöhe die Version auf 2, um sicherzustellen, dass der Object Store "pages" erstellt wird +const dbPromise = openDB("my-pdf-store", 2, { upgrade(db) { // Überprüfe und erstelle den Object Store für PDFs if (!db.objectStoreNames.contains("pdfs")) {