From 99b4436ceb26a294aec1485d382e3628a05fb484 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Wed, 11 Sep 2019 11:02:44 -0700 Subject: [PATCH] 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 --- src/chrome/UpdateIndicator.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chrome/UpdateIndicator.tsx b/src/chrome/UpdateIndicator.tsx index dd24c0cf01c..da802540826 100644 --- a/src/chrome/UpdateIndicator.tsx +++ b/src/chrome/UpdateIndicator.tsx @@ -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 { } componentDidMount() { - if (isProduction()) { + if (isProduction() && config().launcherEnabled) { reportPlatformFailures( checkForUpdate(this.props.version).then(res => { if (res.kind === 'error') {