mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-13 02:55:39 +00:00
JS router
This commit is contained in:
@@ -48,12 +48,10 @@ const registerUser = async e => {
|
||||
}
|
||||
};
|
||||
|
||||
const index = () => {
|
||||
export const index = () => {
|
||||
let form = document.getElementById('form');
|
||||
form.addEventListener('submit', registerUser, true);
|
||||
|
||||
let username = document.getElementById('username');
|
||||
username.addEventListener('input', userExists, false);
|
||||
}
|
||||
|
||||
export default index;
|
||||
|
||||
Reference in New Issue
Block a user