whole docs now run new repl

- move MicroRepl code to MiniRepl
- fix a ssr bug
This commit is contained in:
Felix Roos 2023-12-28 20:36:23 +01:00
parent 837f8f318d
commit 975a198ee9
5 changed files with 158 additions and 555 deletions

View file

@ -77,6 +77,9 @@ async function bufferToDataUrl(buf) {
//open db and initialize it if necessary
const openDB = (config, onOpened) => {
const { dbName, version, table, columns } = config;
if (typeof window === 'undefined') {
return;
}
if (!('indexedDB' in window)) {
console.log('IndexedDB is not supported.');
return;