Fix public version check (#1203)
Summary: Relied too much on TSC and not enough on my brain.  Pull Request resolved: https://github.com/facebook/flipper/pull/1203 Test Plan:  Endpoint is getting hit on startup now for public builds. Reviewed By: mweststrate Differential Revision: D21764325 Pulled By: passy fbshipit-source-id: 771c4e430717f4eae5eab36f279ca3eff9e9bcf7
This commit is contained in:
committed by
Facebook GitHub Bot
parent
925a5a4d61
commit
9d88469063
@@ -19,7 +19,7 @@ import {reportPlatformFailures} from '../utils/metrics';
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {shell} from 'electron';
|
import {shell} from 'electron';
|
||||||
import config from '../utils/processConfig';
|
import config from '../utils/processConfig';
|
||||||
import isFBBuild from '../fb-stubs/config';
|
import fbConfig from '../fb-stubs/config';
|
||||||
|
|
||||||
const Container = styled(FlexRow)({
|
const Container = styled(FlexRow)({
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
@@ -95,7 +95,7 @@ export default class UpdateIndicator extends React.PureComponent<Props, State> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
if (isProduction() && (config().launcherEnabled || !isFBBuild)) {
|
if (isProduction() && (config().launcherEnabled || !fbConfig.isFBBuild)) {
|
||||||
reportPlatformFailures(
|
reportPlatformFailures(
|
||||||
checkForUpdate(this.props.version).then((res) => {
|
checkForUpdate(this.props.version).then((res) => {
|
||||||
if (res.kind === 'error') {
|
if (res.kind === 'error') {
|
||||||
|
|||||||
Reference in New Issue
Block a user