Fix missing .length
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Captain ALM 2022-08-17 18:39:08 +01:00
parent a26a2df198
commit fb018d9f4a
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

View File

@ -338,7 +338,7 @@ function GetFirstSubElement(t,r) {
return t
}
function InsertBefore(p,c) {
if (p.childNodes > 0) {p.insertBefore(c, p.childNodes[0]);} else {p.appendChild(c);}
if (p.childNodes.length > 0) {p.insertBefore(c, p.childNodes[0]);} else {p.appendChild(c);}
}
function GetNavTextWidth(s) {
var st = document.getElementById("st")