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:
committed by
Facebook GitHub Bot
parent
df8a68b7f1
commit
58fe45fc23
@@ -290,7 +290,12 @@ async function waitForLogin(store: Store) {
|
||||
}
|
||||
|
||||
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 (
|
||||
!isProduction() ||
|
||||
isTest() ||
|
||||
|
||||
@@ -103,8 +103,8 @@ export const Navbar = withTrackingScope(function Navbar() {
|
||||
<TroubleshootMenu />
|
||||
<ExtrasMenu />
|
||||
<RightSidebarToggleButton />
|
||||
|
||||
<UpdateIndicator />
|
||||
{getRenderHostInstance().serverConfig.environmentInfo
|
||||
.isHeadlessBuild && <UpdateIndicator />}
|
||||
</Layout.Horizontal>
|
||||
</Layout.Horizontal>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user