Closed kcrisman closed 3 years ago
So close! One tiny thing to tweak! The =
in JavaScript is assignment only, not equality comparison. Just use ==
instead and this is ready to merge. Thanks a lot for the work!
Sorry, that was just carelessness - wouldn't have happened a decade ago! I don't contribute code more than about .1% of my time nowadays ☹️ Thanks for catching that.
<rant>
Javascript always silently fails in such situations in web interfaces, so you have to really have an eagle eye. Aargh.</rant>
Thanks again!!
I think that
||
evaluates like in Python, where if the first one is true then it just immediately returns true, right? Otherwise we should keep the line about>2
.