Enable SignalDebug when devtools is enabled
Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com>
This commit is contained in:
parent
64314c4f17
commit
2356a30eeb
3 changed files with 6 additions and 1 deletions
|
@ -2729,6 +2729,7 @@ ipc.on('get-config', async event => {
|
|||
: getEnvironment(),
|
||||
isMockTestEnvironment: Boolean(process.env.MOCK_TEST),
|
||||
ciMode,
|
||||
devTools: defaultWebPrefs.devTools,
|
||||
// Should be already computed and cached at this point
|
||||
dnsFallback: await getDNSFallback(),
|
||||
disableIPv6: DISABLE_IPV6,
|
||||
|
|
|
@ -40,6 +40,7 @@ export const rendererConfigSchema = z.object({
|
|||
contentProxyUrl: configRequiredStringSchema,
|
||||
crashDumpsPath: configRequiredStringSchema,
|
||||
ciMode: z.enum(['full', 'benchmark']).or(z.literal(false)),
|
||||
devTools: z.boolean(),
|
||||
disableIPv6: z.boolean(),
|
||||
dnsFallback: DNSFallbackSchema,
|
||||
ciBackupPath: configOptionalStringSchema,
|
||||
|
|
|
@ -48,7 +48,10 @@ window.Whisper.events = clone(window.Backbone.Events);
|
|||
initMessageCleanup();
|
||||
startConversationController();
|
||||
|
||||
if (!isProduction(window.SignalContext.getVersion())) {
|
||||
if (
|
||||
!isProduction(window.SignalContext.getVersion()) ||
|
||||
window.SignalContext.config.devTools
|
||||
) {
|
||||
const SignalDebug = {
|
||||
cdsLookup: (options: CdsLookupOptionsType) =>
|
||||
window.textsecure.server?.cdsLookup(options),
|
||||
|
|
Loading…
Reference in a new issue