wait Seite in indexedDB speichern in localhost (Entwicklungsumgebung) funktioniert

This commit is contained in:
ISA
2024-10-21 08:44:59 +02:00
parent 979cfb9c03
commit 420e3b8ab2

View File

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