From 54ba4724b4efe5563dd76e740d6720e55754dc7a Mon Sep 17 00:00:00 2001 From: tequ Date: Fri, 5 Dec 2025 14:38:40 +0900 Subject: [PATCH] Support https://xahau.network/server_definitions.json --- index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 5c645a0..dc097ee 100644 --- a/index.html +++ b/index.html @@ -193,7 +193,11 @@ return response.json(); }) .then(function(jsonResponse) { - defs = jsonResponse; + if (Object.keys(jsonResponse).length == 1 && jsonResponse.result) { + defs = jsonResponse.result + } else { + defs = jsonResponse; + } process_defs(); }).catch(e=>{ console.log(e);