Files
flipper/src/utils/argvUtils.tsx
Pascal Hartig b292ecec71 Migrate argvUtils
Summary:
_typescript_

Quite happy that the stupid check for `remote` can finally go away.

Reviewed By: jknoxville

Differential Revision: D16709217

fbshipit-source-id: 94bc035d2a7bbc3131e35febd48723760841f6b4
2019-08-09 10:47:13 -07:00

17 lines
537 B
TypeScript

/**
* Copyright 2018-present Facebook.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* @format
*/
import electron from 'electron';
import isProduction from './isProduction';
export const isAutoUpdaterEnabled = () =>
// TODO(T39788540): Centralise config access and avoid parsing multiple times.
JSON.parse(electron.remote.process.env.CONFIG || process.env.CONFIG || '{}')
.updaterEnabled &&
isProduction() &&
process.platform === 'darwin';