check for WebCrypto during startup

This commit is contained in:
antelle 2017-05-21 18:13:07 +02:00
parent 17b5f7bc5f
commit 245662a941
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,8 @@ const FeatureDetector = {
return this.isMac;
},
ensureCanRun: function() {
if (/MSIE |Trident/.test(navigator.userAgent)) {
throw 'IE detected';
if (!window.crypto) {
throw 'WebCrypto not available';
}
if (!localStorage.length) {
try {