Skip to content

Commit adaab4d

Browse files
authored
Disable console warning for native crypto modules (#111)
1 parent d8d9c0c commit adaab4d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/toolbox.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ import * as peculiarCrypto from "@peculiar/webcrypto";
2424
let webcrypto;
2525
if ((typeof self !== "undefined") && "crypto" in self) {
2626
// Always use crypto if available natively (browser / Deno)
27-
console.warn("[FIDO2-LIB] Native crypto is enabled");
2827
webcrypto = self.crypto;
2928

3029
} else {
3130
// Always use node webcrypto if available ( >= 16.0 )
3231
if(platformCrypto && platformCrypto.webcrypto) {
33-
console.warn("[FIDO2-LIB] Native crypto is enabled");
3432
webcrypto = platformCrypto.webcrypto;
3533

3634
} else {

0 commit comments

Comments
 (0)