Files
browserPGP/prngCheck.js
unknown 0793f3e1e2 a
2018-11-14 16:36:35 +00:00

5 lines
442 B
JavaScript

function isGoodPrngAvailable(){return!("undefined"==typeof window||!window.crypto||!window.crypto.getRandomValues)||"undefined"!=typeof window&&"object"==typeof window.msCrypto&&"function"==typeof window.msCrypto.getRandomValues}
if (!isGoodPrngAvailable()) {
(alert("A browser that has a Pseudo Random Number Generator is required to use ProtonMail. Please update your browser."),window.location="https://protonmail.com/compatibility");
}