For you module peeps: attempting to add a switch statement inside an exports function and it's not working. If I use traditional if, else if, and else, it works fine. Missing something, or bug/issue?
Any specific error?
I can't come up with a reason why it wouldn't work.
Strangely enough, no. No error, it just simply won't enter the switch statement.
Let me look into this again and see if I was just jacking it up. But I tried a few different ways and tried applying just a basic switch and didn't seem to have luck before.
Follow-up: I'm an idiot. Variables weren't matching (hence why I was getting a ReferenceError for a nonexistent variable).
Happens to the best of us :-)