mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 01:55:40 +00:00
dom manipulations uses elements
This commit is contained in:
@@ -36,7 +36,9 @@ const updateInput = (levelGroup: Element, newLevel: number) => {
|
||||
input.id = id;
|
||||
input.name = id;
|
||||
} else {
|
||||
throw new Error('Did you add an extra input to DOM?');
|
||||
if (input.id != 'add') {
|
||||
throw new Error(`Did you add an extra input to DOM? ${input.id} ${input.className} ${input.name}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user