Port and re-write icon code.

This commit is contained in:
Paul
2021-06-19 12:34:53 +01:00
parent ec97dbebd0
commit 5aa8f30e14
17 changed files with 412 additions and 41 deletions

View File

@@ -201,11 +201,12 @@ function Context({ auth, sync, children, dispatcher }: Props) {
}
}
} else {
await client
.fetchConfiguration()
.catch(() =>
console.error("Failed to connect to API server.")
);
try {
await client.fetchConfiguration()
} catch (err) {
console.error("Failed to connect to API server.");
}
setStatus(ClientStatus.READY);
}
})();