git ssb

16+

Dominic / patchbay



Commit c713144685decb84e2df39b0fcf3fc1cadab7528

fix redirect during lite client onboarding

Ev Bogue committed on 12/1/2016, 1:08:11 AM
Parent: e7fc925105dd9b5a36e85af534af3db99b13faed

Files changed

modules_basic/invite.jschanged
modules_basic/invite.jsView
@@ -77,10 +77,9 @@
7777 "you have been invited to join:", h('br'),
7878 h('code', data.invite)
7979 ),
8080 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
8382 )
8483
8584 function attempt () {
8685 exports.invite_accept(invite, function (message) {
@@ -93,9 +92,9 @@
9392
9493 //TODO: handle in a consistent way with either hashrouting
9594 //or with tabs...
9695 if(parts[0] === data.invite)
97- location.hash = data.redirect
96 + location.hash = ''
9897 else
9998 console.log("NO REDIRECT")
10099 })
101100 }

Built with git-ssb-web