From e5b4d2c6b3af9332a94223f0e46322d5f94b15b9 Mon Sep 17 00:00:00 2001 From: slawkens Date: Thu, 30 May 2024 09:49:06 +0200 Subject: [PATCH] Fix warnings in basic.js --- tools/basic.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/basic.js b/tools/basic.js index 2c086b1d..8fa21fa9 100644 --- a/tools/basic.js +++ b/tools/basic.js @@ -1,9 +1,13 @@ function MouseOverBigButton(source) { - source.firstChild.style.visibility = "visible"; + if (source?.firstChild?.style) { + source.firstChild.style.visibility = "visible"; + } } function MouseOutBigButton(source) { - source.firstChild.style.visibility = "hidden"; + if (source?.firstChild?.style) { + source.firstChild.style.visibility = "hidden"; + } } function BigButtonAction(path) { window.location = path; -} \ No newline at end of file +}