const submit_button = document.getElementById('submit-button')
// If is empty values, submit button reload page
submit_button.addEventListener('click', e => { … })
When there is no element with id submit-button present on the page, this code fails. I believe that this is valid case and therefore, there should probably be a condition. Even after #33, the code still shouldn't produce errors in JavaScript console.
From
django_fido/js/fido2.js
:When there is no element with id
submit-button
present on the page, this code fails. I believe that this is valid case and therefore, there should probably be a condition. Even after #33, the code still shouldn't produce errors in JavaScript console.