in packages/supports-web-crypto/src/supportsWebCrypto.ts [22:33]
export function supportsWebCrypto(window: Window): boolean {
if (
supportsSecureRandom(window) &&
typeof window.crypto.subtle === "object"
) {
const { subtle } = window.crypto;
return supportsSubtleCrypto(subtle);
}
return false;
}