Fix warnings in basic.js

This commit is contained in:
slawkens 2024-05-30 09:49:06 +02:00
parent da1830371f
commit e5b4d2c6b3

View File

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