Skip to content

Commit 32d38a2

Browse files
committed
ref: always use globalThis.crypto
1 parent 821a577 commit 32d38a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dashkeys.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ var DashKeys = ("object" === typeof module && exports) || {};
9595
const TPUB = "043587cf";
9696

9797
/** @type {typeof window.crypto} */
98-
let Crypto = Window.crypto || require("node:crypto");
98+
let Crypto = globalThis.crypto;
9999
let Utils = {};
100100

101101
/** @type {Uint8ArrayToHex} */

0 commit comments

Comments
 (0)