add check to a toggleMainNav call

Chris Pollett [2023-01-27 02:Jan:th]
add check to a toggleMainNav call
Filename
js/game.js
diff --git a/js/game.js b/js/game.js
index 4ee8960..80da551 100644
--- a/js/game.js
+++ b/js/game.js
@@ -363,7 +363,7 @@ function addListenersAnchors(anchors)
             anchor.addEventListener('click', (event) => {
                 if (!anchor.classList.contains('disabled')) {
                     game.takeTurn(hash);
-                    if (call_toggle) {
+                    if (game.hasNavBar && call_toggle) {
                         toggleMainNav();
                     }
                 }
ViewGit