Fix linting errors.

pull/2162/head
George Tsomlektsis 2 years ago
parent b0d6b5b13d
commit 3e699f8ac3

@ -178,14 +178,14 @@ let needSetup = false;
log.debug("entry", `Request Domain: ${hostname}`);
const uptimeKumaEntryPage=UptimeKumaServer.getInstance().entryPage;
const uptimeKumaEntryPage = UptimeKumaServer.getInstance().entryPage;
if (hostname in StatusPage.domainMappingList) {
log.debug("entry", "This is a status page domain");
let slug = StatusPage.domainMappingList[hostname];
await StatusPage.handleStatusPageResponse(response, server.indexHTML, slug);
} else if (uptimeKumaEntryPage && uptimeKumaEntryPage.startsWith('statusPage-')) {
} else if (uptimeKumaEntryPage && uptimeKumaEntryPage.startsWith("statusPage-")) {
response.redirect("/status/" + uptimeKumaEntryPage.replace("statusPage-", ""));
} else {

Loading…
Cancel
Save