mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
Get platform independently of bridge info on options page
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user