fix: need to use try/catch not if
This commit is contained in:
parent
312f8ab43a
commit
4e0021ef23
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue