From 146e5e3723b17a21cc6efa6e3cd2514ab093e3d6 Mon Sep 17 00:00:00 2001 From: hensm Date: Thu, 27 Feb 2020 09:06:48 +0000 Subject: [PATCH] Get platform independently of bridge info on options page --- ext/src/ui/options/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/src/ui/options/index.tsx b/ext/src/ui/options/index.tsx index 0d305fb..d6914d4 100644 --- a/ext/src/ui/options/index.tsx +++ b/ext/src/ui/options/index.tsx @@ -144,15 +144,14 @@ class OptionsApp extends Component<{}, OptionsAppState> { this.setState({ hasLoaded: true , options: await options.getAll() + , platform: (await browser.runtime.getPlatformInfo()).os }); try { const bridgeInfo = await bridge.getInfo(); - const { os } = await browser.runtime.getPlatformInfo(); this.setState({ bridgeInfo - , platform: os , bridgeLoading: false }); } catch {