mirror of
https://github.com/s00500/ESPUI.git
synced 2025-06-14 07:40:40 +00:00
Changes per suggestions by maintainer (Lukas Bachschwell).
This commit is contained in:
@ -1352,7 +1352,7 @@ void ESPUIClass::beginLITTLEFS(const char* _title, const char* username, const c
|
||||
});
|
||||
|
||||
server->onNotFound([this](AsyncWebServerRequest* request) {
|
||||
if(captivePortal == true)
|
||||
if(captivePortal)
|
||||
{
|
||||
request->redirect("/");
|
||||
}
|
||||
@ -1506,7 +1506,7 @@ void ESPUIClass::begin(const char* _title, const char* username, const char* pas
|
||||
});
|
||||
|
||||
server->onNotFound([this](AsyncWebServerRequest* request) {
|
||||
if(captivePortal == true)
|
||||
if(captivePortal)
|
||||
{
|
||||
request->redirect("/");
|
||||
}
|
||||
|
Reference in New Issue
Block a user