* Set the value of a switch button. * @param {string} id HTML id * @param {string} varname js internal variable name
(id, varname)
| 344 | * @param {string} varname js internal variable name |
| 345 | */ |
| 346 | function setSwitchButton(id, varname) { |
| 347 | let element = document.getElementById(id); |
| 348 | element.checked = settings[varname]; |
| 349 | } |
no outgoing calls
no test coverage detected