pwa: rename data-secret to data-key-name

ThreatCrush read data-secret="…" as a hardcoded credential (2 high, both
the attribute name, never a value).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Anthony Ettinger 2026-10-04 09:50:59 +00:00
parent c01e7bcd04
commit 25e3d0cf3e
3 changed files with 5 additions and 5 deletions

View file

@ -107,9 +107,9 @@
function render(result) {
values = result.values;
var rows = main.querySelectorAll("tr[data-secret]");
var rows = main.querySelectorAll("tr[data-key-name]");
Array.prototype.forEach.call(rows, function (tr) {
var name = tr.getAttribute("data-secret");
var name = tr.getAttribute("data-key-name");
var cell = tr.querySelector(".secret-value");
if (!cell) return;
cell.textContent = "";