Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 70b505b

Browse files
authored
Change textContent to innerHTML for meta and dates
Updated meta and dates elements to use innerHTML for formatting.
1 parent ea57b1c commit 70b505b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/certManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ function openModal(c) {
271271
const dl = document.getElementById("modalDownload");
272272

273273
if (nameEl) nameEl.textContent = c.company;
274-
if (metaEl) metaEl.textContent = `${c.type}Status: ${c.status || (c.status === "" ? "Unknown" : c.status)}`;
275-
if (datesEl) datesEl.textContent = `Valid: ${c.validFrom}${c.validTo}`;
274+
if (metaEl) metaEl.innerHTML = `${c.type}<b>${c.status || (c.status === "" ? "Unknown" : c.status)}</b>`;
275+
if (datesEl) datesEl.innerHTML = `<i>Valid from: ${c.validFrom}<br>Expires: ${c.validTo}</i>`;
276276

277277
if (!dl) {
278278
console.warn("modalDownload element not found");

0 commit comments

Comments
 (0)