Replace firstChild with firstElementChild (Thanks to @un000000)

This commit is contained in:
slawkens
2026-01-30 22:56:19 +01:00
parent 52a6256905
commit 496499abbb
2 changed files with 10 additions and 10 deletions

View File

@@ -1,11 +1,11 @@
function MouseOverBigButton(source) {
if (source?.firstChild?.style) {
source.firstChild.style.visibility = "visible";
if (source?.firstElementChild?.style) {
source.firstElementChild.style.visibility = "visible";
}
}
function MouseOutBigButton(source) {
if (source?.firstChild?.style) {
source.firstChild.style.visibility = "hidden";
if (source?.firstElementChild?.style) {
source.firstElementChild.style.visibility = "hidden";
}
}
function BigButtonAction(path) {