mirror of
https://github.com/tornadocash/websnark.git
synced 2025-01-15 15:38:28 +01:00
Merge remote-tracking branch 'origin/master' into ahmed/fix-browser-env
* origin/master: update the build Remove check entirely even though it shouldn't be running Assume the code will always be run in the browser # Conflicts: # build/websnark.js # example/websnark.js # src/groth16.js
This commit is contained in:
commit
96c2680c2c
4204
package-lock.json
generated
4204
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -28,9 +28,6 @@ const inBrowser = (typeof window !== "undefined") || process && process.env && p
|
||||
let NodeWorker;
|
||||
let NodeCrypto;
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(`Running in browser ${inBrowser}`);
|
||||
|
||||
if (!inBrowser) {
|
||||
NodeWorker = require("worker_threads").Worker;
|
||||
NodeCrypto = require("crypto");
|
||||
|
Loading…
Reference in New Issue
Block a user