From 59ab0a39f1eac1632292460862f7966e7c3d8629 Mon Sep 17 00:00:00 2001 From: ByteZhang Date: Wed, 20 Mar 2024 14:22:01 +0800 Subject: [PATCH] feat: config pre-config --- src/hardware/index.ts | 2 +- src/hardware/instance.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hardware/index.ts b/src/hardware/index.ts index 2310639..8e9dd9f 100644 --- a/src/hardware/index.ts +++ b/src/hardware/index.ts @@ -209,7 +209,7 @@ class ServiceHardware { async getReleaseInfo() { const { data } = await axios.get( - `https://data.onekey.so/config.json?noCache=${new Date().getTime()}` + `https://data.onekey.so/pre-config.json?noCache=${new Date().getTime()}` ); const deviceMap = { diff --git a/src/hardware/instance.ts b/src/hardware/instance.ts index ffef8c2..d247740 100644 --- a/src/hardware/instance.ts +++ b/src/hardware/instance.ts @@ -18,7 +18,7 @@ export const getHardwareSDKInstance = memoizee( const settings: Partial = { debug: true, connectSrc: 'https://jssdk.onekey.so/0.3.40/', - preRelease: false, + preRelease: true, fetchConfig: true, };