summaryrefslogtreecommitdiff
path: root/src/api/version.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/version.ts')
-rw-r--r--src/api/version.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/version.ts b/src/api/version.ts
index aab2d22..c20aedd 100644
--- a/src/api/version.ts
+++ b/src/api/version.ts
@@ -9,7 +9,7 @@ type VersionData = {
export async function fetchVersion(
endpoint: string,
- apiConfig: ClashAPIConfig
+ apiConfig: ClashAPIConfig,
): Promise<VersionData> {
let json = {};
try {
@@ -20,7 +20,7 @@ export async function fetchVersion(
}
} catch (err) {
// log and ignore
-
+
console.log(`failed to fetch ${endpoint}`, err);
}
return json;