mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2024-10-27 20:34:12 +00:00
Fixing crypto require for older version of decimal, needed for a project I'm working on
This commit is contained in:
parent
bc66aa91a5
commit
50250d8c83
@ -4046,7 +4046,7 @@
|
|||||||
if ( !crypto ) {
|
if ( !crypto ) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
crypto = require('crypto');
|
crypto = require('cry' + 'pto');
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user