No update checkes

Summary: No need to check for updates on Electron builds.

Reviewed By: antonk52

Differential Revision: D49821903

fbshipit-source-id: d836e4254bbe793921bb4a627220fee961c1c402
This commit is contained in:
Lorenzo Blasa
2023-10-02 05:06:03 -07:00
committed by Facebook GitHub Bot
parent df8a68b7f1
commit 58fe45fc23
2 changed files with 8 additions and 3 deletions

View File

@@ -290,7 +290,12 @@ async function waitForLogin(store: Store) {
} }
async function verifyFlipperIsUpToDate(title: string) { async function verifyFlipperIsUpToDate(title: string) {
const config = getRenderHostInstance().serverConfig.processConfig; const serverConfig = getRenderHostInstance().serverConfig;
// If this is not a headless build, do not check for updates.
if (!serverConfig.environmentInfo.isHeadlessBuild) {
return;
}
const config = serverConfig.processConfig;
if ( if (
!isProduction() || !isProduction() ||
isTest() || isTest() ||

View File

@@ -103,8 +103,8 @@ export const Navbar = withTrackingScope(function Navbar() {
<TroubleshootMenu /> <TroubleshootMenu />
<ExtrasMenu /> <ExtrasMenu />
<RightSidebarToggleButton /> <RightSidebarToggleButton />
{getRenderHostInstance().serverConfig.environmentInfo
<UpdateIndicator /> .isHeadlessBuild && <UpdateIndicator />}
</Layout.Horizontal> </Layout.Horizontal>
</Layout.Horizontal> </Layout.Horizontal>
); );