mirror of
https://github.com/stackblitz/bolt.new
synced 2025-02-11 07:03:15 +00:00
hotfix for test and lint done
This commit is contained in:
parent
2439e1cffa
commit
143ba5dc15
@ -6,6 +6,11 @@ const logger = createScopedLogger('ChatHistory');
|
|||||||
|
|
||||||
// this is used at the top level and never rejects
|
// this is used at the top level and never rejects
|
||||||
export async function openDatabase(): Promise<IDBDatabase | undefined> {
|
export async function openDatabase(): Promise<IDBDatabase | undefined> {
|
||||||
|
if (typeof indexedDB === 'undefined') {
|
||||||
|
console.error('indexedDB is not available in this environment.');
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
const request = indexedDB.open('boltHistory', 1);
|
const request = indexedDB.open('boltHistory', 1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user