From b8b671c1121925ff8562648da5edfad56675c627 Mon Sep 17 00:00:00 2001 From: Gautam Anand Date: Tue, 15 Oct 2024 17:39:03 -0500 Subject: [PATCH] Bug fixes --- components/home.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/home.js b/components/home.js index c5ffe7af..df1f3f52 100644 --- a/components/home.js +++ b/components/home.js @@ -354,7 +354,10 @@ setShowCountryButtons(false) if(!country && mapSlug !== gameOptions.location) { if( ((window?.lastPlayTrack||0) + 20000 < Date.now())) { - fetch(config.apiUrl+`/mapPlay/${mapSlug}`, {method: "POST"}) + try { + fetch(clientConfig()?.apiUrl+`/mapPlay/${mapSlug}`, {method: "POST"}) + } catch(e) {} + } try {