diff --git a/src/context/notifications.tsx b/src/context/notifications.tsx index 8908ea5f..887d5b2e 100644 --- a/src/context/notifications.tsx +++ b/src/context/notifications.tsx @@ -47,8 +47,8 @@ export const NotificationsProvider = (props: { children: JSX.Element }) => { const [db, setDb] = createSignal>>() onMount(() => { const dbx = openDB('notifications-db', 1, { - upgrade(db) { - db.createObjectStore('notifications') + upgrade(indexedDb) { + indexedDb.createObjectStore('notifications') } }) setDb(dbx) @@ -121,7 +121,7 @@ export const NotificationsProvider = (props: { children: JSX.Element }) => { }, onerror(err) { console.error('[context.notifications] sse connection closed by error', err) - throw new Error() // NOTE: simple hack to close the connection + throw new Error(err) // NOTE: simple hack to close the connection } }) }