Skip to content

Commit 8bf2a20

Browse files
authoredMar 2, 2020
fix: make access to msCrypto consistent (#393)
It doesn't make sense to explicitly use window. only once in the chain.
1 parent bb2c8e4 commit 8bf2a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/rng-browser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
var getRandomValues =
88
(typeof crypto != 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto)) ||
99
(typeof msCrypto != 'undefined' &&
10-
typeof window.msCrypto.getRandomValues == 'function' &&
10+
typeof msCrypto.getRandomValues == 'function' &&
1111
msCrypto.getRandomValues.bind(msCrypto));
1212

1313
var rnds8 = new Uint8Array(16); // eslint-disable-line no-undef

0 commit comments

Comments
 (0)
Please sign in to comment.