From 4e0021ef23f47ebc53b065b6221190786ccb6573 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 4 Nov 2023 03:34:37 -0400 Subject: [PATCH] fix: need to use try/catch not if --- src/kernel.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kernel.ts b/src/kernel.ts index 65dc938..04e6e31 100644 --- a/src/kernel.ts +++ b/src/kernel.ts @@ -58,7 +58,9 @@ function testIndexedDBSupport() { export async function boot() { let userKey; - if (!(await testIndexedDBSupport())) { + try { + await testIndexedDBSupport(); + } catch { setKernelLoaded("indexeddb_error"); logErr("indexed db is not supported or is blocked"); return;