mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
lazy element, settings: account delete and secret update
This commit is contained in:
@@ -20,9 +20,15 @@ import ROUTES from '../../../api/v1/routes';
|
||||
import genJsonPayload from '../../../utils/genJsonPayload';
|
||||
import createError from '../../../components/error/index';
|
||||
|
||||
const emailExists = async () => {
|
||||
const email = <HTMLInputElement>document.getElementById('email');
|
||||
const emailExists = async (element?: HTMLInputElement) => {
|
||||
let email;
|
||||
if (element === undefined || element === null) {
|
||||
email = <HTMLInputElement>document.getElementById('email');
|
||||
} else {
|
||||
email = element;
|
||||
}
|
||||
const val = email.value;
|
||||
|
||||
const payload = {
|
||||
val,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user