From 7d1fe4646075fda4121c95f7df4b9d3efc2ac185 Mon Sep 17 00:00:00 2001 From: ale Date: Sun, 6 Oct 2024 18:12:47 +0200 Subject: [PATCH] css darklight --- public/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/main.js b/public/main.js index b8fde47..9f96996 100644 --- a/public/main.js +++ b/public/main.js @@ -368,8 +368,8 @@ document.addEventListener('DOMContentLoaded', function () { var res = await result.json() if (res && res.length > 0) { var bounce = document.getElementById('bounce'), - host = new URL(window.location.href).host - reg = '(<\/?p>|(https?:\/\/)?' + host + ')' + host = new URL(window.location.href).host, + reg = '(<\/?p>|(https?:\/\/)?' + host + ')' bounce.innerHTML = res.map(function (p) { return `${p.content.replace(new RegExp(reg, 'igm'), '')} ${dayjs().to(p.published)}` }).join(' | ') } })