edge detect wip

This commit is contained in:
Mo Bitar
2017-01-15 17:56:24 -06:00
parent 13cf04c7c1
commit 32b709c689
2 changed files with 9 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ angular.module('app.frontend')
// if user has high password cost and is using browser that doesn't support WebCrypto,
// we want to tell them that they can't login with this browser.
if(cost > 5000) {
return (window.crypto && window.crypto.subtle) ? true : false;
return Neeto.crypto instanceof SNCryptoWeb ? true : false;
} else {
return true;
}