From 11898faa3d97348499d9ae836e8eafcbb4a03a08 Mon Sep 17 00:00:00 2001 From: oliver Date: Mon, 10 Aug 2026 08:16:28 -0300 Subject: [PATCH] cloudflare fix --- app.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app.js b/app.js index ae86540..39603a2 100644 --- a/app.js +++ b/app.js @@ -317,8 +317,8 @@ function dnsRender() { const name = r.name.toLowerCase(); if (HIDDEN_NAMES.includes(name)) return false; const matchType = !typeFilter || r.type === typeFilter; - const content = (r.records || []) - .map((x) => x.content) + const content = (r.records && r.records.length ? r.records : [r]) + .map((x) => x.content || "") .join(" ") .toLowerCase(); const matchSearch = @@ -347,7 +347,7 @@ function dnsRender() { tbody.innerHTML = filtered .map((r) => { - const records = r.records || []; + const records = r.records && r.records.length ? r.records : [r]; const content = records .map((x) => `${escHtml(x.content)}`) .join("
"); @@ -364,6 +364,7 @@ function dnsRender() { ${statusHtml}