After a lot of troubleshooting, I realized I'd made a very dumb easy typo when I updated my config for .12. Adding this as a way to catch this condition so you don't just mysteriously fail with 403, etc.
Note, I'm not a JS expert, but this seemed to work; may not be idomatic. Figured I'd try to do the PR vs just complaining in an issue. ๐
Good edits on all; looks like I wasn't TOO far off. :) I was going to use the new var as in your last suggestion but I didn't know if I'd be committing some JS sin of reference, etc.
After a lot of troubleshooting, I realized I'd made a very dumb easy typo when I updated my config for .12. Adding this as a way to catch this condition so you don't just mysteriously fail with 403, etc.
Note, I'm not a JS expert, but this seemed to work; may not be idomatic. Figured I'd try to do the PR vs just complaining in an issue. ๐