fix(login): Correct issue with stray # at the end of /connect/complete

This commit is contained in:
Ben Gotow 2015-03-18 19:18:27 -07:00
parent a791c9d8ba
commit 4d89d50594

View file

@ -40,6 +40,7 @@ ContainerView = React.createClass
node.addEventListener 'did-finish-load', (e) ->
if node.getUrl().indexOf('/connect/complete') != -1
query = node.getUrl().split('?')[1]
query = query[0..-2] if query[query.length - 1] is '#'
token = querystring.decode(query)
OnboardingActions.finishedConnect(token)
if node.getUrl().indexOf('cancelled') != -1