gluon-status-page: Use querySelector instead of firstElementChild

This commit is contained in:
Igor Scheller 2022-04-17 23:26:17 +02:00
parent 68a5a74d1d
commit 1ceb4428da
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -444,7 +444,7 @@
} }
function Neighbour(iface, addr, color, destroy) { function Neighbour(iface, addr, color, destroy) {
var th = iface.tbody.firstElementChild; var th = iface.tbody.querySelector('tr');
var el = iface.tbody.insertRow(); var el = iface.tbody.insertRow();
var tdHostname = el.insertCell(); var tdHostname = el.insertCell();
@ -692,7 +692,7 @@
} }
var info = { var info = {
'tbody': el.firstElementChild.firstElementChild, 'tbody': el.querySelector('tbody'),
'signalgraph': signalgraph, 'signalgraph': signalgraph,
'ifname': ifname, 'ifname': ifname,
'wireless': wireless, 'wireless': wireless,