From 06b4e9bc878551c82d27d6851820b1cc6dd8bb28 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 20 Jun 2021 10:17:34 +0100 Subject: [PATCH] If IDB is not present, allow app to load as normal --- external/lang | 2 +- src/context/revoltjs/RevoltClient.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/external/lang b/external/lang index 50570240..9db39a2e 160000 --- a/external/lang +++ b/external/lang @@ -1 +1 @@ -Subproject commit 50570240bc09fc23794bb4452c1c0f35599b3219 +Subproject commit 9db39a2eecc5fbb7ed06d4598da60700e96e3274 diff --git a/src/context/revoltjs/RevoltClient.tsx b/src/context/revoltjs/RevoltClient.tsx index d489dee8..8f86c824 100644 --- a/src/context/revoltjs/RevoltClient.tsx +++ b/src/context/revoltjs/RevoltClient.tsx @@ -138,7 +138,9 @@ function Context({ auth, sync, children, dispatcher }: Props) { useEffect(() => { (async () => { - await client.restore(); + if (client.db) { + await client.restore(); + } if (auth.active) { dispatcher({ type: "QUEUE_FAIL_ALL" });