mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 01:55:40 +00:00
add site key form
This commit is contained in:
@@ -15,10 +15,10 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
const isBlankString = (event: Event|null, value: string|number, field: string) => {
|
||||
const isBlankString = (value: string|number, field: string, event?: Event) => {
|
||||
value = value.toString();
|
||||
if (!value.replace(/\s/g, '').length) {
|
||||
if (event) {
|
||||
if (event !== undefined) {
|
||||
event.preventDefault();
|
||||
}
|
||||
alert(`${field} can't be empty`);
|
||||
|
||||
Reference in New Issue
Block a user