Only show update indicator in non-launcher environments

Summary:
I didn't update the render logic accordingly after figuring
out how the internal update endpoint works. This closes
that gap.

Reviewed By: danielbuechele

Differential Revision: D17316892

fbshipit-source-id: 1e6c4dd17b342b2a062cea90d763be01ed6fc1ec
This commit is contained in:
Pascal Hartig
2019-09-11 11:02:44 -07:00
committed by Facebook Github Bot
parent 96f5a87867
commit 99b4436ceb

View File

@@ -16,6 +16,7 @@ import {
import {reportPlatformFailures} from '../utils/metrics';
import React from 'react';
import {shell} from 'electron';
import config from '../utils/processConfig';
const Container = styled(FlexRow)({
alignItems: 'center',
@@ -90,7 +91,7 @@ export default class UpdateIndicator extends React.PureComponent<Props, State> {
}
componentDidMount() {
if (isProduction()) {
if (isProduction() && config().launcherEnabled) {
reportPlatformFailures(
checkForUpdate(this.props.version).then(res => {
if (res.kind === 'error') {