From ff58050f130f2219cb2f88619f542cc9c5dd7853 Mon Sep 17 00:00:00 2001 From: madkarmaa Date: Fri, 9 May 2025 11:33:32 +0200 Subject: [PATCH] refactor: fetch status page --- src/lib/components/organisms/NavBar.svelte | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lib/components/organisms/NavBar.svelte b/src/lib/components/organisms/NavBar.svelte index b7d9011..b5205f3 100644 --- a/src/lib/components/organisms/NavBar.svelte +++ b/src/lib/components/organisms/NavBar.svelte @@ -2,17 +2,15 @@ import Banner from '$components/organisms/Banner.svelte'; import Button from '$components/atoms/Button.svelte'; import api from '$api'; - - const statusUrl = 'https://status.revanced.app/'; // TODO: replace with env variable {#await api.general.ping() then apiUp} {#if !apiUp} The API is currently unresponsive and some services may not work correctly. - {#if statusUrl} - Check the for updates. - {/if} + {#await api.general.getAbout() then data} + Check the for updates. + {/await} {/if} {/await}