mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 18:39:58 +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({
|
this.setState({
|
||||||
hasLoaded: true
|
hasLoaded: true
|
||||||
, options: await options.getAll()
|
, options: await options.getAll()
|
||||||
|
, platform: (await browser.runtime.getPlatformInfo()).os
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const bridgeInfo = await bridge.getInfo();
|
const bridgeInfo = await bridge.getInfo();
|
||||||
const { os } = await browser.runtime.getPlatformInfo();
|
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
bridgeInfo
|
bridgeInfo
|
||||||
, platform: os
|
|
||||||
, bridgeLoading: false
|
, bridgeLoading: false
|
||||||
});
|
});
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Reference in New Issue
Block a user