Reviewed By: danielbuechele Differential Revision: D13956251 fbshipit-source-id: a741ffc7f39b3a09eeb29b8b96c3a7183f630f84
18 lines
480 B
JavaScript
18 lines
480 B
JavaScript
/**
|
|
* 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';
|
|
|
|
const _isProduction = !/node_modules[\\/]electron[\\/]/.test(
|
|
// $FlowFixMe: execPath exists, but is not in electron API spec
|
|
process.execPath || electron.remote.process.execPath,
|
|
);
|
|
|
|
export default function isProduction(): boolean {
|
|
return _isProduction;
|
|
}
|