From 4b0e7de3e4a62de828bd6fd321556b1b69d66cdb Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Tue, 4 Jun 2024 01:23:51 +0200 Subject: [PATCH] fixed linting issues --- server/socket-handlers/status-page-socket-handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/socket-handlers/status-page-socket-handler.js b/server/socket-handlers/status-page-socket-handler.js index a3061e981..b3ae52b2f 100644 --- a/server/socket-handlers/status-page-socket-handler.js +++ b/server/socket-handlers/status-page-socket-handler.js @@ -102,7 +102,7 @@ module.exports.statusPageSocketHandler = (socket) => { throw new Error("No slug?"); } const config = await statusPage.toJSON(); - config.allowEditingCustomHtml = import.meta.env.UPTIME_KUMA_ALLOW_CUSTOM_HTML === '1'; + config.allowEditingCustomHtml = import.meta.env.UPTIME_KUMA_ALLOW_CUSTOM_HTML === "1"; callback({ ok: true, config, @@ -168,7 +168,7 @@ module.exports.statusPageSocketHandler = (socket) => { statusPage.show_certificate_expiry = config.showCertificateExpiry; statusPage.modified_date = R.isoDateTime(); statusPage.google_analytics_tag_id = config.googleAnalyticsId; - if (process.env.UPTIME_KUMA_ALLOW_CUSTOM_HTML === "1"){ + if (process.env.UPTIME_KUMA_ALLOW_CUSTOM_HTML === "1") { statusPage.custom_html = config.customHtml; }