mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 01:55:40 +00:00
notification mark read
This commit is contained in:
@@ -30,8 +30,7 @@ import createError from '../../../components/error';
|
||||
|
||||
import VIEWS from '../../../views/v1/routes';
|
||||
|
||||
const BTN = <HTMLElement>document.querySelector('.sitekey-form__submit');
|
||||
const key = BTN.dataset.sitekey;
|
||||
const BTN_CLASS = document.querySelector('sitekey-form__submit');
|
||||
|
||||
const submit = async (e: Event) => {
|
||||
e.preventDefault();
|
||||
@@ -44,6 +43,9 @@ const submit = async (e: Event) => {
|
||||
const levels = LEVELS.getLevels();
|
||||
console.debug(`[form submition]: levels: ${levels}`);
|
||||
|
||||
const btn = <HTMLElement>document.querySelector(`${BTN_CLASS}`);
|
||||
const key = btn.dataset.sitekey;
|
||||
|
||||
const payload = {
|
||||
levels,
|
||||
duration,
|
||||
|
||||
Reference in New Issue
Block a user