consistently use finally {} for cleanup in html/js

This commit is contained in:
Mechiel Lukkien
2023-02-06 15:23:33 +01:00
parent 6cbe4d5d37
commit 37713a974c
2 changed files with 20 additions and 19 deletions

View File

@ -161,7 +161,7 @@ const index = async () => {
window.alert('Password has been changed.')
form.reset()
} catch (err) {
console.log('error', err)
console.log({err})
window.alert('Error: ' + err.message)
} finally {
fieldset.disabled = false
@ -193,7 +193,7 @@ const init = async () => {
dom._kids(page, 'page not found')
}
} catch (err) {
console.log('error', err)
console.log({err})
window.alert('Error: ' + err.message)
window.location.hash = curhash
curhash = window.location.hash