diff --git a/src/routes/poll/+page.svelte b/src/routes/poll/+page.svelte index 8a9ace3..3e3f8cb 100644 --- a/src/routes/poll/+page.svelte +++ b/src/routes/poll/+page.svelte @@ -100,17 +100,17 @@ // update ui logos = logos; - // if (location.hash !== '') { - // try { - // await exchange_token(location.hash.substring(1)); - // } catch (err) { - // alert(`Could not exchange the token: ${err}`); - // } - // } else if (localStorage.getItem('killswitch') === null) { - // await goto('/poll/unauthorized/'); - // } else { - // alert('Warning: no token!'); - // } + if (location.hash !== '') { + try { + await exchange_token(location.hash.substring(1)); + } catch (err) { + alert(`Could not exchange the token: ${err}`); + } + } else if (localStorage.getItem('killswitch') === null) { + await goto('/poll/unauthorized/'); + } else { + alert('Warning: no token!'); + } }); function previousPage() {