From a77150a1f32fe1eae58f0ac3cf1a10223be5830b Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Mon, 15 Nov 2021 00:02:24 +0100
Subject: [PATCH] Fix typo element.id --> element

---
 app.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app.js b/app.js
index a011513..592d2a9 100644
--- a/app.js
+++ b/app.js
@@ -59,7 +59,7 @@ function toggleVisible(element) {
     if (elt.id != element) elt.style.display = "none";
     else elt.style.display = "block";
   }
-  if (element.id == "boardContainer") {
+  if (element == "boardContainer") {
     // Avoid smartphone scrolling effects (TODO?)
     document.querySelector("html").style.overflow = "hidden";
     document.body.style.overflow = "hidden";
@@ -67,7 +67,7 @@ function toggleVisible(element) {
   else {
     document.querySelector("html").style.overflow = "visible";
     document.body.style.overflow = "visible";
-    if (element.id == "newGame") {
+    if (element == "newGame") {
       // Workaround "superposed texts" effect
       inputName.focus();
       inputName.blur();
-- 
2.44.0