From 979cfb9c03f3f8997b170a957d3d0219a1e30705 Mon Sep 17 00:00:00 2001 From: ISA Date: Mon, 21 Oct 2024 08:36:57 +0200 Subject: [PATCH] =?UTF-8?q?Datenbankversion=20erh=C3=B6hen,=20um=20sicherz?= =?UTF-8?q?ustellen,=20dass=20der=20Object=20Store=20"pages"=20korrekt=20e?= =?UTF-8?q?rstellt=20wird=20in=20indexedDB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/indexedDB.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")) {