Replace firstChild with firstElementChild (Thanks to @un000000)

This commit is contained in:
slawkens
2025-09-26 08:56:15 +02:00
parent e0cc19ad86
commit df7b6e29fb
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) {