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) {
|
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() ||
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user