Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Fix check for the --insecure flag (#758)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravicious committed Apr 26, 2022
1 parent cb3d37c commit 94660fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/teleterm/src/mainProcess/runtimeSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const RESOURCES_PATH = app.isPackaged
const dev = env.NODE_ENV === 'development' || env.DEBUG_PROD === 'true';

// Allows running tsh in insecure mode (development)
const isInsecure = dev || argv.slice(2).indexOf('--insecure') !== -1;
const isInsecure = dev || argv.includes('--insecure');

function getRuntimeSettings(): RuntimeSettings {
const userDataDir = app.getPath('userData');
Expand Down

0 comments on commit 94660fd

Please sign in to comment.