fixed linting issues

This commit is contained in:
Frank Elsinga 2024-06-04 01:23:51 +02:00
parent 2a556e714f
commit 4b0e7de3e4

View file

@ -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;
}