cleanup
This commit is contained in:
@@ -49,12 +49,6 @@ void WebCfgServer::initialize()
|
||||
}
|
||||
sendCss();
|
||||
});
|
||||
_server.on("/inter.css", [&]() {
|
||||
if (_hasCredentials && !_server.authenticate(_credUser, _credPassword)) {
|
||||
return _server.requestAuthentication();
|
||||
}
|
||||
sendFontsInterMinCss();
|
||||
});
|
||||
_server.on("/favicon.ico", HTTP_GET, [&]() {
|
||||
if (_hasCredentials && !_server.authenticate(_credUser, _credPassword)) {
|
||||
return _server.requestAuthentication();
|
||||
@@ -735,9 +729,10 @@ void WebCfgServer::buildHtmlHeader(String &response)
|
||||
{
|
||||
response.concat("<HTML><HEAD>");
|
||||
response.concat("<meta name='viewport' content='width=device-width, initial-scale=1'>");
|
||||
response.concat("<style>");
|
||||
response.concat(stylecss);
|
||||
response.concat("</style>");
|
||||
// response.concat("<style>");
|
||||
// response.concat(stylecss);
|
||||
// response.concat("</style>");
|
||||
response.concat("<link rel='stylesheet' href='/style.css'>");
|
||||
response.concat("<TITLE>NUKI Hub</TITLE></HEAD><BODY>");
|
||||
}
|
||||
|
||||
@@ -941,12 +936,6 @@ void WebCfgServer::sendCss()
|
||||
_server.send(200, "text/plain", stylecss, sizeof(stylecss));
|
||||
}
|
||||
|
||||
void WebCfgServer::sendFontsInterMinCss()
|
||||
{
|
||||
// escaped by https://www.cescaper.com/
|
||||
// _server.send(200, "text/plain", intercss, sizeof(intercss));
|
||||
}
|
||||
|
||||
void WebCfgServer::sendFavicon()
|
||||
{
|
||||
_server.send(200, "image/png", (const char*)favicon_32x32, sizeof(favicon_32x32));
|
||||
|
||||
Reference in New Issue
Block a user