From 6826a1b684c07d199a82a22ccfd395eac484d7d8 Mon Sep 17 00:00:00 2001 From: "qikang.yuan" Date: Wed, 29 May 2024 11:19:55 +0800 Subject: [PATCH] fix uni native not in browser list --- src/pages/RoomList/index.tsx | 2 +- src/utils/brand.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/RoomList/index.tsx b/src/pages/RoomList/index.tsx index 34bac15d..eba1f74a 100644 --- a/src/pages/RoomList/index.tsx +++ b/src/pages/RoomList/index.tsx @@ -115,7 +115,7 @@ export const RoomList = () => { const BrowserOptions = useMemo(() => { return AllBrowserTypes.filter((browser) => { return connectionList?.some( - (conn) => conn.browser.name.toLocaleLowerCase() === browser, + (conn) => conn.browser.type.toLocaleLowerCase() === browser, ); }).map((name) => { return { diff --git a/src/utils/brand.ts b/src/utils/brand.ts index 034ca77a..1d13b90c 100644 --- a/src/utils/brand.ts +++ b/src/utils/brand.ts @@ -81,6 +81,7 @@ export const AllBrowserTypes: SpyDevice.Browser[] = [ 'uc', 'wechat', 'qq', + 'uni-native', 'unknown', ];