This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |