Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Only show update indicator in non-launcher environments
Browse files Browse the repository at this point in the history
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
  • Loading branch information
passy authored and facebook-github-bot committed Sep 11, 2019
1 parent 96f5a87 commit 99b4436
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/chrome/UpdateIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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') {
Expand Down

0 comments on commit 99b4436

Please sign in to comment.