Enable SignalDebug when devtools is enabled

This commit is contained in:
Jamie Kyle 2024-09-23 13:09:12 -07:00 committed by GitHub
commit 55820bb8a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 1 deletions

View file

@ -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),