Files
flipper/src/utils/isProduction.js
Pascal Hartig 351ac37fab Log to infinity_analytics_dev scribe cat in non-prod
Reviewed By: danielbuechele

Differential Revision: D13956251

fbshipit-source-id: a741ffc7f39b3a09eeb29b8b96c3a7183f630f84
2019-02-08 11:22:55 -08:00

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;
}