Skip to content

Commit

Permalink
Enables debugging utilities in beta, alpha, dev
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-signal committed Jan 19, 2023
1 parent ef13eb0 commit d0494e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ts/windows/main/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import type { StorageAccessType } from '../../types/Storage.d';
import { start as startConversationController } from '../../ConversationController';
import { MessageController } from '../../util/MessageController';
import { Environment, getEnvironment } from '../../environment';
import { isProduction } from '../../util/version';

window.addEventListener('contextmenu', e => {
const node = e.target as Element | null;
Expand All @@ -42,7 +43,7 @@ window.Whisper.events = clone(window.Backbone.Events);
MessageController.install();
startConversationController();

if (getEnvironment() !== Environment.Production) {
if (!isProduction(window.SignalContext.getVersion())) {
const SignalDebug = {
Data: window.Signal.Data,
getConversation: (id: string) => window.ConversationController.get(id),
Expand Down

0 comments on commit d0494e5

Please sign in to comment.