mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Enable SignalDebug when devtools is enabled
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user