Show update indicator for non-FB builds
Summary: Launcher was sort of a proxy for cases where we *wanted* to have an update mechanism but possibly couldn't use it, e.g. Windows at FB. This makes sure we can also show this in OSS. Reviewed By: nikoant Differential Revision: D20770804 fbshipit-source-id: 62d2dddf9cbd22d51098dda65eea50df420a3078
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5ad8106e3f
commit
c8e5d95c41
@@ -19,6 +19,7 @@ import {reportPlatformFailures} from '../utils/metrics';
|
||||
import React from 'react';
|
||||
import {shell} from 'electron';
|
||||
import config from '../utils/processConfig';
|
||||
import isFBBuild from '../fb-stubs/config';
|
||||
|
||||
const Container = styled(FlexRow)({
|
||||
alignItems: 'center',
|
||||
@@ -91,7 +92,7 @@ export default class UpdateIndicator extends React.PureComponent<Props, State> {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
if (isProduction() && config().launcherEnabled) {
|
||||
if (isProduction() && (config().launcherEnabled || !isFBBuild)) {
|
||||
reportPlatformFailures(
|
||||
checkForUpdate(this.props.version).then((res) => {
|
||||
if (res.kind === 'error') {
|
||||
|
||||
@@ -13,4 +13,5 @@ export default {
|
||||
showLogin: false,
|
||||
showFlipperRating: false,
|
||||
warnFBEmployees: true,
|
||||
isFBBuild: false,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user