[pass-reset_script] Fix. Changed lines 2 & 3 to no-longer use a depreciated feature
This commit is contained in:
parent
3042660079
commit
0c9ae88c31
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
const formEl = document.getElementById("reset");
|
||||
formEl.addEventListener('submit', () => {
|
||||
event.preventDefault();
|
||||
formEl.addEventListener('submit', (listener) => {
|
||||
listener.preventDefault();
|
||||
const formData = new FormData(formEl);
|
||||
if(formData.get("newPW") === formData.get("newPWConfirm")){
|
||||
formData.delete("newPWConfirm");
|
||||
|
|
Loading…
Reference in a new issue