INNER CODE UNIT · JavaScript
redaction
cisagov/ScubaGoggles · scubagoggles/reporter/scripts/main.js:228
function redaction() {
const cliElement = document.getElementById("sgr_settings");
const cliElementValue = cliElement.getAttribute("data-redaction");
if (cliElementValue !== "None" && cliElementValue == "true") {
try {
const identityTable = document.querySelectorAll("table")[0]
let tbody = identityTable.querySelector("tbody")
if (!tbody) throw new Error(
`Invalid HTML structure, <table id='${identityTable.getAttribute("id")}'> does not have a <tbody> tag.`
)
if (tbody.children[1].children) {
let identityData = tbody.children[1].children
for (let cell of identityData) {