declare variables properly in who-else

fixes #186
This commit is contained in:
Hugh Rundle 2024-06-29 08:25:52 +10:00
parent 7f535710d4
commit 6eba270fab
Signed by: hugh
GPG key ID: A7E35779918253F9

View file

@ -69,7 +69,7 @@
disc_systems.push(d.discovery)
}
const values = new Set(ils_systems.sort())
ils = document.getElementById('ils')
const ils = document.getElementById('ils')
for (let val of values) {
const option = document.createElement('option')
option.innerText = val
@ -77,7 +77,7 @@
}
const discoveries = new Set(disc_systems.sort())
discovery = document.getElementById('discovery')
const discovery = document.getElementById('discovery')
for (let val of discoveries) {
if (val) {
const option = document.createElement('option')
@ -87,7 +87,7 @@
}
// watch for a query
form = document.getElementById('form')
const form = document.getElementById('form')
form.addEventListener('submit', (event) => {
event.preventDefault()