diff --git a/src/chrome/TitleBar.tsx b/src/chrome/TitleBar.tsx index 7cdcc5b72..3421dd9c3 100644 --- a/src/chrome/TitleBar.tsx +++ b/src/chrome/TitleBar.tsx @@ -32,7 +32,7 @@ import ScreenCaptureButtons from './ScreenCaptureButtons.js'; import AutoUpdateVersion from './AutoUpdateVersion'; import UpdateIndicator from './UpdateIndicator'; import config from '../fb-stubs/config'; -import {isAutoUpdaterEnabled} from '../utils/argvUtils.js'; +import {isAutoUpdaterEnabled} from '../utils/argvUtils'; import isProduction from '../utils/isProduction.js'; import {clipboard} from 'electron'; import React from 'react'; diff --git a/src/utils/argvUtils.js b/src/utils/argvUtils.tsx similarity index 78% rename from src/utils/argvUtils.js rename to src/utils/argvUtils.tsx index 542c85391..7fd27f0be 100644 --- a/src/utils/argvUtils.js +++ b/src/utils/argvUtils.tsx @@ -10,8 +10,7 @@ import isProduction from './isProduction'; export const isAutoUpdaterEnabled = () => // TODO(T39788540): Centralise config access and avoid parsing multiple times. - // $FlowFixMe: env is not in the type defs. - JSON.parse(electron.remote?.process.env.CONFIG || process.env.CONFIG || '{}') + JSON.parse(electron.remote.process.env.CONFIG || process.env.CONFIG || '{}') .updaterEnabled && isProduction() && process.platform === 'darwin';