Brandawg93 / homebridge-nest-cam_old

Use your Nest Cam as IP camera in HomeKit.
Apache License 2.0
92 stars 14 forks source link

Error check for undefined access token #46

Closed rtgoodwin closed 5 years ago

rtgoodwin commented 5 years ago

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. ๐Ÿ˜„

rtgoodwin commented 5 years ago

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.

KhaosT commented 5 years ago

๐Ÿ˜…Thank you :)