Get platform independently of bridge info on options page

This commit is contained in:
hensm
2020-02-27 09:06:48 +00:00
parent b0decd9704
commit 146e5e3723

View File

@@ -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 {