wait Seite in indexedDB speichern in localhost (Entwicklungsumgebung) funktioniert
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user