From 3ef71c2a94b11b8c5728e8daed048b992b895a41 Mon Sep 17 00:00:00 2001 From: Yash Srivastava <52625656+darkshredder@users.noreply.github.com> Date: Tue, 20 Apr 2021 03:36:13 +0530 Subject: [PATCH] Fix: Missing API and debug links (#132) --- src/components/LastUpdated.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/LastUpdated.svelte b/src/components/LastUpdated.svelte index a5b3277..44738f2 100644 --- a/src/components/LastUpdated.svelte +++ b/src/components/LastUpdated.svelte @@ -9,11 +9,12 @@ let fetch_running = false; // prevent multiple parallel fetch runs last_api_request_url_store.subscribe(url => { + last_api_request_url = url; + if (fetch_running || last_updated_date) return; fetch_running = true; - last_api_request_url = url; fetch_from_api('status', { format: 'json' }, function (data) { last_updated_date = data.data_updated; fetch_running = false; -- 2.39.5