(id, def = false)
| 2785 | const getInt = (id, def = 0) => parseInt(document.getElementById(id)?.value) || def; |
| 2786 | const getFloat = (id, def = 0.0) => parseFloat(document.getElementById(id)?.value) || def; |
| 2787 | const getChecked = (id, def = false) => document.getElementById(id)?.checked || def; |
| 2788 | |
| 2789 | const config = { |
| 2790 | host: getValue('host', '0.0.0.0'), |