[WebUI] Fix first line seperator (#20518)

The separator (request) flag has to be cleared before starting the output of sensors/drivers to ignore previous outputs. So there will no seperator in front of the list. This only appeared, when `WebTime` is off.
This commit is contained in:
SteWers 2024-01-16 16:14:40 +01:00 committed by GitHub
parent aa2053988a
commit 0cd3d3b003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1492,6 +1492,7 @@ bool HandleRootStatusRefresh(void)
#endif // USE_WEB_SSE
WSContentSend_P(PSTR("{t}")); // <table style='width:100%'>
WSContentSeparator(3); // Reset seperator to ignore previous outputs
if (Settings->web_time_end) {
WSContentSend_P(PSTR("{s}" D_TIMER_TIME "{m}%s{e}"), GetDateAndTime(DT_LOCAL).substring(Settings->web_time_start, Settings->web_time_end).c_str());
WSContentSeparator(0); // Print separator