Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@clovelt
clovelt / downloadIndexedDBfirefoxConsole.js
Created April 17, 2023 02:04
Firefox download IndexedDB data through console
const dbName = prompt("Enter the name of the database:");
const request = indexedDB.open(dbName);
request.onerror = function(event) {
console.error("Could not open database", event.target.errorCode);
};
request.onsuccess = function(event) {
const db = event.target.result;
const objectStoreNames = Array.from(db.objectStoreNames);
const data = {};