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:
ahmed korim 2022-04-05 17:16:47 +02:00
commit 96c2680c2c
2 changed files with 4177 additions and 30 deletions

4204
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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");