]> git.cworth.org Git - lmno.games/commitdiff
Fix the gear toggle to work the first time it is clicked
authorCarl Worth <cworth@cworth.org>
Tue, 12 May 2020 01:22:04 +0000 (18:22 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 12 May 2020 01:22:04 +0000 (18:22 -0700)
Apparently, the first time this condition is executed, the
host_tools.style.display attribute is not "none" but is instead some
sort of empty value. With the old code, this made a first click on the
gear do nothing, (setting it to "none" but not toggling visibility)
and then a second click would make the host tools appear.

With this change to reverse the logic to look for an explicit value of
"block" (which is set only after the first click) the gear button
works reliably on every click including the first.


No differences found