From 760f0fda727f893fe9c033e65bbae74e87a67e43 Mon Sep 17 00:00:00 2001 From: Dreamacro <305009791@qq.com> Date: Thu, 4 Jul 2019 10:25:35 +0800 Subject: [PATCH] Chore: remove unused code --- src/stores/HookStore.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/stores/HookStore.ts b/src/stores/HookStore.ts index 1c02784..6f4fce2 100644 --- a/src/stores/HookStore.ts +++ b/src/stores/HookStore.ts @@ -3,7 +3,7 @@ import * as Models from '@models' import { createContainer } from 'unstated-next' import * as API from '@lib/request' import { useObject } from '@lib/hook' -import { jsBridge, isClashX } from '@lib/jsBridge' +import { jsBridge } from '@lib/jsBridge' import { setLocalStorageItem, partition, to } from '@lib/helper' function useData () { @@ -65,11 +65,6 @@ function useAPIInfo () { }) async function fetch () { - if (isClashX()) { - const apiInfo = await jsBridge.getAPIInfo() - set({ hostname: apiInfo.host, port: apiInfo.port, secret: apiInfo.secret }) - return - } const info = await API.getExternalControllerConfig() set({ ...info }) }