mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
add site form validation tests
This commit is contained in:
@@ -33,7 +33,7 @@ const getFormUrl = (querySelector?: string | HTMLFormElement) => {
|
||||
form = querySelector;
|
||||
}
|
||||
|
||||
if (form !== undefined) {
|
||||
if (form !== undefined && form !== null) {
|
||||
return form.action;
|
||||
} else {
|
||||
throw new Error("Can't find form");
|
||||
|
||||
Reference in New Issue
Block a user