Commit c713144685decb84e2df39b0fcf3fc1cadab7528
fix redirect during lite client onboarding
Ev Bogue committed on 12/1/2016, 1:08:11 AMParent: e7fc925105dd9b5a36e85af534af3db99b13faed
Files changed
modules_basic/invite.js | changed |
modules_basic/invite.js | |||
---|---|---|---|
@@ -77,10 +77,9 @@ | |||
77 | 77 … | "you have been invited to join:", h('br'), | |
78 | 78 … | h('code', data.invite) | |
79 | 79 … | ), | |
80 | 80 … | h('button', 'accept', {onclick: attempt}), | |
81 | - progress, | ||
82 | - h('p', {innerHTML: 'If the page doesn\'t redirect, navigate to <a href="/">Home</a>'}) | ||
81 … | + progress | ||
83 | 82 … | ) | |
84 | 83 … | ||
85 | 84 … | function attempt () { | |
86 | 85 … | exports.invite_accept(invite, function (message) { | |
@@ -93,9 +92,9 @@ | |||
93 | 92 … | ||
94 | 93 … | //TODO: handle in a consistent way with either hashrouting | |
95 | 94 … | //or with tabs... | |
96 | 95 … | if(parts[0] === data.invite) | |
97 | - location.hash = data.redirect | ||
96 … | + location.hash = '' | ||
98 | 97 … | else | |
99 | 98 … | console.log("NO REDIRECT") | |
100 | 99 … | }) | |
101 | 100 … | } |
Built with git-ssb-web