fix: this lead to the unintentional breaking change

This commit is contained in:
Daniel Tehrani
2023-10-11 16:32:19 +09:00
parent 2fab170a15
commit 53049c8cbe
2 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ export class MembershipProver extends Profiler implements IProver {
this.time("Load circuit");
const useRemoteCircuit =
this.useRemoteCircuit ?? typeof window !== "undefined";
this.useRemoteCircuit || typeof window !== "undefined";
const circuitBin = await loadCircuit(this.circuit, useRemoteCircuit);
this.timeEnd("Load circuit");

View File

@@ -32,7 +32,7 @@ export class MembershipVerifier extends Profiler implements IVerifier {
this.circuit = options.circuit;
this.useRemoteCircuit =
options.useRemoteCircuit ?? typeof window !== "undefined";
options.useRemoteCircuit || typeof window !== "undefined";
}
async initWasm() {