Skip to content

Commit

Permalink
Invalid instanceof syntax usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Keroosha committed Mar 22, 2024
1 parent ac5d260 commit 24508ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/WebAuthn.Net.Demo.Mvc/wwwroot/js/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const API = {
let authenticatorData;
if (newCredential.response.getAuthenticatorData) {
const authData = newCredential.response.getAuthenticatorData();
const isValid = authData instanceof "arraybuffer";
const isValid = authData instanceof ArrayBuffer;
if (!isValid){
Alerts.getAuthenticatorDataInvalid();
return;
Expand All @@ -143,7 +143,7 @@ const API = {
let publicKey;
if (newCredential.response.getPublicKey) {
const responsePublicKey = newCredential.response.getPublicKey();
const isValid = responsePublicKey instanceof "arraybuffer";
const isValid = responsePublicKey instanceof ArrayBuffer;
if (!isValid) {
Alerts.getPublicKeyInvalid();
return;
Expand Down

0 comments on commit 24508ad

Please sign in to comment.