mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-04 03:56:33 +08:00
fix(login): Correct issue with stray #
at the end of /connect/complete
This commit is contained in:
parent
a791c9d8ba
commit
4d89d50594
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ ContainerView = React.createClass
|
||||||
node.addEventListener 'did-finish-load', (e) ->
|
node.addEventListener 'did-finish-load', (e) ->
|
||||||
if node.getUrl().indexOf('/connect/complete') != -1
|
if node.getUrl().indexOf('/connect/complete') != -1
|
||||||
query = node.getUrl().split('?')[1]
|
query = node.getUrl().split('?')[1]
|
||||||
|
query = query[0..-2] if query[query.length - 1] is '#'
|
||||||
token = querystring.decode(query)
|
token = querystring.decode(query)
|
||||||
OnboardingActions.finishedConnect(token)
|
OnboardingActions.finishedConnect(token)
|
||||||
if node.getUrl().indexOf('cancelled') != -1
|
if node.getUrl().indexOf('cancelled') != -1
|
||||||
|
|
Loading…
Reference in a new issue