mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-26 11:28:08 +01:00
Rename files
This commit is contained in:
18
ts/windows/main/phase0-devtools.node.ts
Normal file
18
ts/windows/main/phase0-devtools.node.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { Environment, getEnvironment } from '../../environment.std.js';
|
||||
|
||||
if (
|
||||
process.env.NODE_ENV !== 'production' &&
|
||||
getEnvironment() === Environment.Development &&
|
||||
Boolean(process.env.REACT_DEVTOOLS)
|
||||
) {
|
||||
// Not bundled in the production app
|
||||
// eslint-disable-next-line max-len
|
||||
// eslint-disable-next-line global-require, import/no-extraneous-dependencies, @typescript-eslint/no-var-requires
|
||||
const { initialize, connectToDevTools } = require('react-devtools-core');
|
||||
|
||||
initialize();
|
||||
connectToDevTools();
|
||||
}
|
||||
Reference in New Issue
Block a user