Skip to content

Commit a8dbc20

Browse files
authored
Remove modal-note elements hiding logic
Removed code that force-hides common modal-note elements.
1 parent 7c31937 commit a8dbc20

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

web/certManager.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -198,18 +198,6 @@ function openModal(c) {
198198
if (metaEl) metaEl.textContent = `${c.type} • Status: ${c.status || (c.status === "" ? "Unknown" : c.status)}`;
199199
if (datesEl) datesEl.textContent = `Valid: ${c.validFrom}${c.validTo}`;
200200

201-
// Force-hide/remove common modal-note elements that might contain the disclaimer
202-
// (covers different naming conventions so it actually vanishes)
203-
const noteSelectors = ['#modalNote', '#modal-note', '.modal-note', '[data-modal-note]'];
204-
noteSelectors.forEach(sel => {
205-
document.querySelectorAll(sel).forEach(el => {
206-
el.innerHTML = "";
207-
el.style.display = "none";
208-
// also remove from DOM to be safe
209-
if (el.parentNode) el.parentNode.removeChild(el);
210-
});
211-
});
212-
213201
if (!dl) {
214202
console.warn("modalDownload element not found");
215203
} else {

0 commit comments

Comments
 (0)