From 3e699f8ac3c544cd0dd7d9459ef9b8da3c7efd65 Mon Sep 17 00:00:00 2001 From: George Tsomlektsis Date: Mon, 3 Oct 2022 18:01:52 +0300 Subject: [PATCH] Fix linting errors. --- server/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/server.js b/server/server.js index 0f215245c..620e5bb45 100644 --- a/server/server.js +++ b/server/server.js @@ -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 {