Electron releases do not update indicator on the Navigation Bar
Summary: No need to show this for Electron releases. Also, this becomes important once we make the final Electron release. Reviewed By: aigoncharov Differential Revision: D50557052 fbshipit-source-id: 803a9c9ad21fbff39147ac06add74888b9ee4091
This commit is contained in:
committed by
Facebook GitHub Bot
parent
21057fba01
commit
4b915da47c
@@ -291,10 +291,11 @@ async function waitForLogin(store: Store) {
|
|||||||
|
|
||||||
async function verifyFlipperIsUpToDate(title: string) {
|
async function verifyFlipperIsUpToDate(title: string) {
|
||||||
const serverConfig = getRenderHostInstance().serverConfig;
|
const serverConfig = getRenderHostInstance().serverConfig;
|
||||||
// // If this is not a headless build, do not check for updates.
|
|
||||||
// if (!serverConfig.environmentInfo.isHeadlessBuild) {
|
// If this is not a headless build, do not check for updates.
|
||||||
// return;
|
if (!serverConfig.environmentInfo.isHeadlessBuild) {
|
||||||
// }
|
return;
|
||||||
|
}
|
||||||
const config = serverConfig.processConfig;
|
const config = serverConfig.processConfig;
|
||||||
if (
|
if (
|
||||||
!isProduction() ||
|
!isProduction() ||
|
||||||
|
|||||||
@@ -103,7 +103,8 @@ export const Navbar = withTrackingScope(function Navbar() {
|
|||||||
<TroubleshootMenu />
|
<TroubleshootMenu />
|
||||||
<ExtrasMenu />
|
<ExtrasMenu />
|
||||||
<RightSidebarToggleButton />
|
<RightSidebarToggleButton />
|
||||||
<UpdateIndicator />
|
{getRenderHostInstance().serverConfig.environmentInfo
|
||||||
|
.isHeadlessBuild && <UpdateIndicator />}
|
||||||
</Layout.Horizontal>
|
</Layout.Horizontal>
|
||||||
</Layout.Horizontal>
|
</Layout.Horizontal>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user