Open garudaonekh opened 1 year ago
Well it shouldn't do because it is in controls.js.
What, specifically, is the error?
In handlEvent function, there is no case for UI_TIME, so Line 605 is fired
Ah right, unless something has change in the meantime, you should notice that it still actually works though - it is just outputting an error incorrectly. I guess we never noticed it was outputting the message on the console log.
The TIME control doesn't actually need anything adding to the DOM, as you will see from looking in addToHTML()
. The message can be silenced by adding another case here.
case UI_GAUGE:
case UI_SEPARATOR:
case UI_TIME:
if (data.visible) addToHTML(data);
break;
and then addToHTML
will do nothing but there will also be no output on the console.
Note: Minor fix to merge in when someone gets a chance
Hi CompleteExample line 129:
mainTime = ESPUI.addControl(Time, "", "", None, 0, generalCallback);
In controls.js, it'll fire error unknown Event because Time is not recognized.
thanks