fix: need to use try/catch not if

This commit is contained in:
Derrick Hammer 2023-11-04 03:34:37 -04:00
parent 312f8ab43a
commit 4e0021ef23
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 1 deletions

View File

@ -58,7 +58,9 @@ function testIndexedDBSupport() {
export async function boot() { export async function boot() {
let userKey; let userKey;
if (!(await testIndexedDBSupport())) { try {
await testIndexedDBSupport();
} catch {
setKernelLoaded("indexeddb_error"); setKernelLoaded("indexeddb_error");
logErr("indexed db is not supported or is blocked"); logErr("indexed db is not supported or is blocked");
return; return;