mthenw / frontail

📝 streaming logs to the browser. Sponsored by https://cloudash.dev
https://cloudash.dev
MIT License
1.81k stars 249 forks source link

fails silently #247

Closed ghost closed 2 years ago

ghost commented 2 years ago
export async function getDb(){
// fails silently
    const db = await openDB("halo", "1", {
        upgrade(db, oldVersion, newVersion, transaction) {
            db.createObjectStore('hello', {
                // The 'id' property of the object will be the key.
                keyPath: 'id',
            });
            db.createObjectStore('store1');
            db.createObjectStore('store2');
            console.log(3333)
        },
    });
    // works
    await openDB('db2', 1, {
        upgrade(db) {
            db.createObjectStore('store1');
            db.createObjectStore('store2');
            console.log(282)
        },
    });
    return db
}