Add position column, use innerText

This commit is contained in:
Anna Puddles
2024-12-06 14:59:25 -05:00
committed by GitHub
parent 6280c9e7b9
commit 1a65533665

View File

@@ -8,16 +8,20 @@ window.addEventListener('load', function() {
let row = document.createElement('tr');
let col1 = document.createElement('td');
col1.innerHTML = agent.key;
col1.innerText = agent.key;
row.append(col1);
let col2 = document.createElement('td');
col2.innerHTML = agent.displayName;
col2.innerText = agent.displayName;
row.append(col2);
let col3 = document.createElement('td');
col3.innerHTML = agent.username;
col3.innerText = agent.username;
row.append(col3);
let col4 = document.createElement('td');
col4.innerText = agent.position;
row.append(col4);
table.append(row);
});