Skip to content

Commit

Permalink
fix: allow deployment reset when using relay
Browse files Browse the repository at this point in the history
  • Loading branch information
a0ngo committed Nov 7, 2023
1 parent 7b8142b commit c63723f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/recovery-utility/main/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ let relayUrl: string | undefined;

const DEFAULT_PROTOCOL = 'UTILITY';
const deployment = DeploymentStore.get();
let protocol = deployment?.protocol || DEFAULT_PROTOCOL;
let protocol = deployment.exp
? deployment.exp > Date.now()
? deployment?.protocol || DEFAULT_PROTOCOL
: DEFAULT_PROTOCOL
: DEFAULT_PROTOCOL;
const relay = app.commandLine.hasSwitch('relay');
const util = app.commandLine.hasSwitch('util');
console.log(`Command line specified: relay: ${relay}, util: ${util}.`);
Expand Down

0 comments on commit c63723f

Please sign in to comment.