Closed evantahler closed 9 years ago
This does not compile currently. You will need to use the Coffeescript is
and isnt
operators instead of the !==
and ===
. Yes, I hate Coffeescript too :frowning:
I believe this is what you are going for:
if parse_uri.port isnt undefined then parse_uri.port else (if parse_uri.protocol is 'https:' then 443 else 80)
Yeah... coffee-script is a mess.
How about now?
LGTM. Will merge shortly. Getting to npm should be in next day or so.
Thanks!
This is now on NPM FYI
If you are testing this client locally, you might want to supply a local endpoint like
http://127.0.0.1:8080
. These changes are required to allow it.