mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Introduce isStagingServer util method
This commit is contained in:
@@ -199,7 +199,7 @@ const cliOptions = cliParser.parse(process.argv);
|
||||
const defaultWebPrefs = {
|
||||
devTools:
|
||||
process.argv.some(arg => arg === '--enable-dev-tools') ||
|
||||
getEnvironment() !== Environment.Production ||
|
||||
getEnvironment() !== Environment.PackagedApp ||
|
||||
!isProduction(app.getVersion()),
|
||||
spellcheck: false,
|
||||
// https://chromium.googlesource.com/chromium/src/+/main/third_party/blink/renderer/platform/runtime_enabled_features.json5
|
||||
@@ -2713,7 +2713,7 @@ ipc.on('get-config', async event => {
|
||||
certificateAuthority: config.get<string>('certificateAuthority'),
|
||||
environment:
|
||||
!isTestEnvironment(getEnvironment()) && ciMode
|
||||
? Environment.Production
|
||||
? Environment.PackagedApp
|
||||
: getEnvironment(),
|
||||
isMockTestEnvironment: Boolean(process.env.MOCK_TEST),
|
||||
ciMode,
|
||||
|
||||
Reference in New Issue
Block a user