mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 23:49:20 +01:00
Add React Devtools
This commit is contained in:
14
ts/windows/main/phase0-devtools.ts
Normal file
14
ts/windows/main/phase0-devtools.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import '../context';
|
||||
import { initialize, connectToDevTools } from 'react-devtools-core';
|
||||
import { Environment, getEnvironment } from '../../environment';
|
||||
|
||||
if (
|
||||
getEnvironment() === Environment.Development &&
|
||||
Boolean(process.env.REACT_DEVTOOLS)
|
||||
) {
|
||||
initialize();
|
||||
connectToDevTools();
|
||||
}
|
||||
Reference in New Issue
Block a user