From dd94e42851488f3d3d78587aa15d02bd76cf26a7 Mon Sep 17 00:00:00 2001 From: josephsmendoza Date: Thu, 20 Jul 2023 16:17:11 -0700 Subject: [PATCH] allow decimal values --- config.html | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/config.html b/config.html index ba0aae8..3a33821 100644 --- a/config.html +++ b/config.html @@ -4,55 +4,55 @@









@@ -96,7 +96,11 @@ const config=await fetch('https://ts.sugoidogo.com/config.json',{headers:tokens.auth_headers}) .then(async response=>{ if(response.ok){ - return response.json() + try { + return await response.json() + } catch { + return {} + } } console.warn(response.code,await response.text()) return {}