From d65d9c4188abc17cf0115e6f080b3ba8d6ec63b8 Mon Sep 17 00:00:00 2001 From: ilya-bkv Date: Mon, 13 Nov 2023 16:44:04 +0300 Subject: [PATCH] fix errors --- src/context/notifications.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 } }) }