fix(desktop): show server connection failure
This commit is contained in:
parent
b39cf15833
commit
b3ab52fe79
1 changed files with 4 additions and 1 deletions
|
|
@ -307,7 +307,10 @@ function createGlobalSync() {
|
||||||
})
|
})
|
||||||
|
|
||||||
async function bootstrap() {
|
async function bootstrap() {
|
||||||
const health = await globalSDK.client.global.health().then((x) => x.data)
|
const health = await globalSDK.client.global
|
||||||
|
.health()
|
||||||
|
.then((x) => x.data)
|
||||||
|
.catch(() => undefined)
|
||||||
if (!health?.healthy) {
|
if (!health?.healthy) {
|
||||||
setGlobalStore(
|
setGlobalStore(
|
||||||
"error",
|
"error",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue