Skip to content

Commit

Permalink
fix: Remove useless friendly captcha warning
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Dec 11, 2023
1 parent f44e8e1 commit 1f0428a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/captcha/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,7 @@ function _arrayWithHoles(arr) {
}

function findCaptchaElements() {
var elements = document.querySelectorAll('.frc-captcha');

if (elements.length === 0) {
console.warn('FriendlyCaptcha: No div was found with .frc-captcha class');
}

return elements;
return document.querySelectorAll('.frc-captcha');
}
/**
* Injects the style if no #frc-style element is already present
Expand Down

0 comments on commit 1f0428a

Please sign in to comment.