Commit d1d896a3 authored by JC Brand's avatar JC Brand

HAS_CRYPTO was actually checking for the opposite

parent 774f0119
......@@ -57,9 +57,9 @@
var KEY = {
ENTER: 13
};
var HAS_CSPRNG = ((typeof crypto === 'undefined') || (
(typeof crypto.randomBytes !== 'function') &&
(typeof crypto.getRandomValues !== 'function')
var HAS_CSPRNG = ((typeof crypto !== 'undefined') &&
((typeof crypto.randomBytes === 'function') ||
(typeof crypto.getRandomValues === 'function')
));
var HAS_CRYPTO = HAS_CSPRNG && (
(typeof CryptoJS !== "undefined") &&
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -1666,9 +1666,9 @@
}
;(function seed() {
var HAS_CSPRNG = ((typeof crypto === 'undefined') ||
((typeof crypto.randomBytes !== 'function') &&
(typeof crypto.getRandomValues !== 'function')
var HAS_CSPRNG = ((typeof crypto !== 'undefined') &&
((typeof crypto.randomBytes === 'function') ||
(typeof crypto.getRandomValues === 'function')
));
if (!HAS_CSPRNG) {
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment