Skip to content

Instantly share code, notes, and snippets.

async function importIndexedDB(obj){
const dbs = parseDBList(obj);
if (!dbs.length) { setStatus('Aucune DB détectée dans le fichier.', false); return; }
// Refuse schèmes non supportés
if (!/^https?:|^file:/.test(location.protocol)) {
setStatus(`Origin non supporté pour IndexedDB (${location.origin}). Ouvre une page http(s) ou file:.`, false);
return;
}