mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-04 15:34:19 +01:00
webui: more typings, clean-up sensor units init
This commit is contained in:
@@ -77,11 +77,7 @@ class CmdOutputBase {
|
||||
const CmdOutput = new CmdOutputBase();
|
||||
|
||||
/**
|
||||
* @typedef {import('./settings.mjs').KeyValueListeners } KeyValueListeners
|
||||
*/
|
||||
|
||||
/**
|
||||
* @returns {KeyValueListeners}
|
||||
* @returns {import('./settings.mjs').KeyValueListeners}
|
||||
*/
|
||||
function listeners() {
|
||||
return {
|
||||
@@ -112,7 +108,6 @@ function onFormSubmit(event) {
|
||||
|
||||
const cmd = event.target.elements
|
||||
.namedItem("cmd");
|
||||
|
||||
if (!(cmd instanceof HTMLInputElement)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user