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

Commit

Permalink
Recompile
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Nov 3, 2021
1 parent 1f735a6 commit bac3bf2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ function isWithinCurveOrder(num) {
}
const crypto = (() => {
const webCrypto = typeof self === 'object' && 'crypto' in self ? self.crypto : undefined;
const nodeRequire = typeof module !== 'undefined' &&
typeof module.require === 'function' &&
module.require.bind(module);
const nodeRequire = typeof module !== 'undefined' && typeof require === 'function';
return {
node: nodeRequire && !webCrypto ? nodeRequire('crypto') : undefined,
node: nodeRequire && !webCrypto ? require('crypto') : undefined,
web: webCrypto,
};
})();
Expand Down

0 comments on commit bac3bf2

Please sign in to comment.